1 iw4madminapplicationalerts AlertManager
RaidMax edited this page 2023-05-20 22:09:21 -05:00

AlertManager Public class

Diagram

  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

Members

Properties

Public properties

Type Name Methods
EventHandler<AlertState> OnAlertConsumed get, set

Methods

Public methods

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)

Details

Inheritance

Constructors

AlertManager

Source code

public AlertManager(ApplicationConfiguration appConfig)
Arguments
Type Name Description
ApplicationConfiguration appConfig

Methods

Initialize

Source code

public virtual async Task Initialize()

RetrieveAlerts

Source code

public virtual IEnumerable<AlertState> RetrieveAlerts(EFClient client)
Arguments
Type Name Description
EFClient client

MarkAlertAsRead

Source code

public virtual void MarkAlertAsRead(Guid alertId)
Arguments
Type Name Description
Guid alertId

MarkAllAlertsAsRead

Source code

public virtual void MarkAllAlertsAsRead(int recipientId)
Arguments
Type Name Description
int recipientId

AddAlert

Source code

public virtual void AddAlert(AlertState alert)
Arguments
Type Name Description
AlertState alert

RegisterStaticAlertSource

Source code

public virtual void RegisterStaticAlertSource(Func<Task<IEnumerable<AlertState>>> alertSource)
Arguments
Type Name Description
Func<Task<IEnumerable<AlertState>>> alertSource

Properties

OnAlertConsumed

public virtual EventHandler<AlertState> OnAlertConsumed { get; set; }

Generated with ModularDoc