-
-
Notifications
You must be signed in to change notification settings - Fork 44
iw4madminapplicationalerts AlertManager
RaidMax edited this page May 21, 2023
·
1 revision
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph IW4MAdmin.Application.Alerts
IW4MAdmin.Application.Alerts.AlertManager[[AlertManager]]
end
subgraph SharedLibraryCore.Interfaces
SharedLibraryCore.Interfaces.IAlertManager[[IAlertManager]]
class SharedLibraryCore.Interfaces.IAlertManager interfaceStyle;
end
SharedLibraryCore.Interfaces.IAlertManager --> IW4MAdmin.Application.Alerts.AlertManager
Type | Name | Methods |
---|---|---|
EventHandler <AlertState > |
OnAlertConsumed |
get, set |
Returns | Name |
---|---|
void |
AddAlert (AlertState alert) |
Task |
Initialize () |
void |
MarkAlertAsRead (Guid alertId) |
void |
MarkAllAlertsAsRead (int recipientId) |
void |
RegisterStaticAlertSource (Func <Task <IEnumerable <AlertState >>> alertSource) |
IEnumerable <AlertState > |
RetrieveAlerts (EFClient client) |
public AlertManager(ApplicationConfiguration appConfig)
Type | Name | Description |
---|---|---|
ApplicationConfiguration |
appConfig |
public virtual async Task Initialize()
public virtual IEnumerable<AlertState> RetrieveAlerts(EFClient client)
Type | Name | Description |
---|---|---|
EFClient |
client |
public virtual void MarkAlertAsRead(Guid alertId)
Type | Name | Description |
---|---|---|
Guid |
alertId |
public virtual void MarkAllAlertsAsRead(int recipientId)
Type | Name | Description |
---|---|---|
int |
recipientId |
public virtual void AddAlert(AlertState alert)
Type | Name | Description |
---|---|---|
AlertState |
alert |
public virtual void RegisterStaticAlertSource(Func<Task<IEnumerable<AlertState>>> alertSource)
Type | Name | Description |
---|---|---|
Func <Task <IEnumerable <AlertState >>> |
alertSource |
public virtual EventHandler<AlertState> OnAlertConsumed { get; set; }
Generated with ModularDoc