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

AlertExtensions Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph IW4MAdmin.Application.Alerts
  IW4MAdmin.Application.Alerts.AlertExtensions[[AlertExtensions]]
  end

Members

Methods

Public Static methods

Returns Name
AlertState BuildAlert(EFClient client, Nullable<AlertCategory> type)
AlertState ExpiresIn(AlertState state, TimeSpan expiration)
AlertState FromClient(AlertState state, EFClient client)
AlertState FromSource(AlertState state, string source)
AlertState OfType(AlertState state, string type)
AlertState WithCategory(AlertState state, AlertCategory category)
AlertState WithMessage(AlertState state, string message)

Details

Methods

BuildAlert

Source code

public static AlertState BuildAlert(EFClient client, Nullable<AlertCategory> type)
Arguments
Type Name Description
EFClient client
Nullable<AlertCategory> type

WithCategory

Source code

public static AlertState WithCategory(AlertState state, AlertCategory category)
Arguments
Type Name Description
AlertState state
AlertCategory category

OfType

Source code

public static AlertState OfType(AlertState state, string type)
Arguments
Type Name Description
AlertState state
string type

WithMessage

Source code

public static AlertState WithMessage(AlertState state, string message)
Arguments
Type Name Description
AlertState state
string message

ExpiresIn

Source code

public static AlertState ExpiresIn(AlertState state, TimeSpan expiration)
Arguments
Type Name Description
AlertState state
TimeSpan expiration

FromSource

Source code

public static AlertState FromSource(AlertState state, string source)
Arguments
Type Name Description
AlertState state
string source

FromClient

Source code

public static AlertState FromClient(AlertState state, EFClient client)
Arguments
Type Name Description
AlertState state
EFClient client

Generated with ModularDoc