Table of Contents

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

runningStation IRunningStation

The IRunningStation representing the running station.

cancellationToken CancellationToken

A token that can request cancellation of asynchronous handlers.

Exceptions

ArgumentNullException

runningStation is null.

Properties

AsyncHandlers

Gets the AsyncHandlers instance to which asynchronous handlers can be added.

public AsyncHandlers AsyncHandlers { get; }

Property Value

AsyncHandlers

Cancel

Gets or sets whether to cancel the station stop.

public bool Cancel { get; set; }

Property Value

bool