Show / Hide Table of Contents

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
object
NotificationEventHandler
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Notification
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
Type Description
bool

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
Type Description
bool

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
Type Name Description
NotificationEventType eventType
int recordId
IEnumerable<int> associateIds
CancellationToken cancellationToken
Returns
Type Description
Task

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
Type Name Description
NotificationEventType eventType
int recordId
int associateId
CancellationToken cancellationToken
Returns
Type Description
Task

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
Type Name Description
NotificationEventType eventType
int recordId
DateTime eventDate
int associateId
CancellationToken cancellationToken
Returns
Type Description
Task

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
Type Name Description
NotificationEventType eventType
int recordId
DateTime eventDate
IEnumerable<int> associateIds
Dictionary<string, string> extraValues
CancellationToken cancellationToken
Returns
Type Description
Task

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
Type Name Description
NotificationEventType eventType
int recordId
CancellationToken cancellationToken
Returns
Type Description
Task

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top