Class NotificationEventHandler
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Inheritance
NotificationEventHandler
Assembly: SoDataBase.dll
Syntax
public class NotificationEventHandler
Constructors
NotificationEventHandler()
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public NotificationEventHandler()
Properties
SendMessageToOurself
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public bool SendMessageToOurself { get; set; }
Property Value
SilentExceptions
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public bool SilentExceptions { get; set; }
Property Value
Methods
NotificationHandledAsync(NotificationEventType, int, IEnumerable<int>, CancellationToken)
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public Task NotificationHandledAsync(NotificationEventType eventType, int recordId, IEnumerable<int> associateIds = null, CancellationToken cancellationToken = default)
Parameters
Returns
NotificationHandledAsync(NotificationEventType, int, int, CancellationToken)
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public Task NotificationHandledAsync(NotificationEventType eventType, int recordId, int associateId, CancellationToken cancellationToken = default)
Parameters
Returns
NotifyUserAsync(NotificationEventType, int, DateTime, int, CancellationToken)
Notify a single user about a specific event
Declaration
public Task NotifyUserAsync(NotificationEventType eventType, int recordId, DateTime eventDate, int associateId, CancellationToken cancellationToken = default)
Parameters
Returns
NotifyUsersAsync(NotificationEventType, int, DateTime, IEnumerable<int>, Dictionary<string, string>, CancellationToken)
Contains logic for handling notifications to users when certain events happen
Example of events: A new ticket has been created, you have been invited to a meeting
Declaration
public Task NotifyUsersAsync(NotificationEventType eventType, int recordId, DateTime eventDate, IEnumerable<int> associateIds = null, Dictionary<string, string> extraValues = null, CancellationToken cancellationToken = default)
Parameters
Returns
NotifyUsersAsync(NotificationEventType, int, CancellationToken)
Used for events where all meta data can be retrieved from the recordId
Declaration
public Task NotifyUsersAsync(NotificationEventType eventType, int recordId, CancellationToken cancellationToken = default)
Parameters
Returns
Extension Methods