Class StationStoppingMessage
- Namespace
- Acuit.Pinpoint.Workstation.Messaging
- Assembly
- Acuit.Pinpoint.Workstation.Abstractions.dll
The message raised by the IMessenger service when the station is about to be stopped.
public class StationStoppingMessage : RunningStationEventMessage, IAsyncHandlingMessage, ICancelMessage
- Inheritance
-
StationStoppingMessage
- Implements
- Inherited Members
Remarks
This message allows the station stop to be canceled. The StationStoppedMessage message should be used to know when the station is actually stopped.
Constructors
StationStoppingMessage(IRunningStation, CancellationToken)
Initializes a new instance of the StationStoppingMessage class.
public StationStoppingMessage(IRunningStation runningStation, CancellationToken cancellationToken)
Parameters
runningStationIRunningStationThe IRunningStation representing the running station.
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 station stop.
public bool Cancel { get; set; }