Class NotifierService
OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers.NotifierService
The notifier service.
Namespace: OptimaJet.Workflow.RealTimeTrackingPlugin.Notifiers
public class NotifierServiceInheritance
- System.Object
Constructors
public NotifierService(IHubContext<WorkflowEngineHub> hubContext) #Initializes a new instance of the NotifierService class.
Parameters
Name
Type
Description
hubContextIHubContext<WorkflowEngineHub>An instance of the SignalR.IHubContext?text=IHubContext<WorkflowEngineHub>.
Properties
Name
Type
IsNotifierSet #BooleanA read-only property that returns
true if the notifier is set, otherwise false.Notifier #BaseNotifierA read-only property that returns the current notifier instance, or
null if none is set.Methods
public void ClearNotifier() #Clears the notifier.
public Task OnConnectedAsync(string processId, string connectionId) #Method to handle client connection to a process for tracking purposes.
Parameters
Name
Type
Description
processIdStringProcessId of the ProcessInstance.
connectionIdStringThe unique identifier of the client's connection.
Returns
Type
Description
Taskpublic Task OnDisconnectedAsync(string connectionId) #Handles the disconnection of a connection.
Parameters
Name
Type
Description
connectionIdStringThe unique identifier for the connection.
Returns
Type
Description
Task