NotificationService, MessageService
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Blazorise;
|
||||
using FoodsharingSiegen.Contracts.Entity;
|
||||
using FoodsharingSiegen.Server.Auth;
|
||||
using FoodsharingSiegen.Server.Data;
|
||||
using FoodsharingSiegen.Server.Data.Service;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
@@ -11,20 +13,6 @@ namespace FoodsharingSiegen.Server.BaseClasses
|
||||
/// <seealso cref="ComponentBase"/>
|
||||
public class FsBase : ComponentBase
|
||||
{
|
||||
#region Dependencies (Injected)
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the auth service (ab)
|
||||
/// </summary>
|
||||
[Inject] private AuthService? AuthService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the audit service (ab)
|
||||
/// </summary>
|
||||
[Inject] private AuditService? AuditService { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
#region Override OnInitializedAsync
|
||||
|
||||
/// <summary>
|
||||
@@ -38,6 +26,30 @@ namespace FoodsharingSiegen.Server.BaseClasses
|
||||
|
||||
#endregion
|
||||
|
||||
#region Dependencies (Injected)
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the auth service (ab)
|
||||
/// </summary>
|
||||
[Inject] private AuthService? AuthService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the audit service (ab)
|
||||
/// </summary>
|
||||
[Inject] private AuditService? AuditService { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the notification (ab)
|
||||
/// </summary>
|
||||
[Inject] protected INotificationService? Notification { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value of the message (ab)
|
||||
/// </summary>
|
||||
[Inject] protected IMessageService? Message { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// Refreshes the state (a. beging, 21.05.2022)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user