Class WorkerLoggingOnMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when a worker is logging on to the station.
public class WorkerLoggingOnMessage : RunningStationEventMessage, IAsyncHandlingMessage, ICancelMessage
- Inheritance
-
WorkerLoggingOnMessage
- Implements
- Inherited Members
Remarks
A plug-in can use this message to prevent the worker from being logged on to the station by setting Cancel to true.
This message is sent for automated (i.e., unmanned) stations as well.
Constructors
WorkerLoggingOnMessage(IRunningStation, Worker?, int, CancellationToken)
Initializes a new instance of the WorkerLoggingOnMessage class.
public WorkerLoggingOnMessage(IRunningStation runningStation, Worker? worker, int workerId, CancellationToken cancellationToken)
Parameters
runningStationIRunningStationThe IRunningStation representing the running station.
workerWorkerThe worker logging on, or null if the station is configured for automatic worker log on.
workerIdintThe worker identification number of the worker logging on.
cancellationTokenCancellationTokenA token that can request cancellation of asynchronous handlers.
Exceptions
- ArgumentNullException
runningStationis null.
Properties
AsyncHandlers
Gets the AsyncHandlers instance to which asynchronous handlers can be added.
public AsyncHandlers AsyncHandlers { get; }
Property Value
Cancel
Gets or sets whether to cancel the worker log on.
public bool Cancel { get; set; }
Property Value
Worker
Gets the worker logging on, or null if the station is configured for automatic worker log on.
public Worker? Worker { get; }
Property Value
WorkerId
Gets the worker identification number of the worker logging on.
public int WorkerId { get; }