NotificationService, MessageService

This commit is contained in:
Andre Beging
2022-05-23 11:54:05 +02:00
parent b16951a1a6
commit d8662c4876
6 changed files with 45 additions and 17 deletions

View File

@@ -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>