Class ReleaseUnit
- Namespace
- Acuit.Pinpoint.Workflows.Workstation.Activities
- Assembly
- Acuit.Pinpoint.Workflows.Workstation.dll
An activity that releases the unit from the station.
public class ReleaseUnit : Activity<bool>, IActivity
- Inheritance
-
ReleaseUnit
- Implements
- Inherited Members
Remarks
The activity result value will be true if the unit is released or if there was no unit at the station in the first place, or false if the unit cannot be released because something is preventing its release (e.g., due to an active test that cannot be canceled).
Constructors
ReleaseUnit()
public ReleaseUnit()
Methods
OnExecuteAsync(ActivityContext, CancellationToken)
Derived classes must implement this to perform the activity.
protected override Task<bool> OnExecuteAsync(ActivityContext context, CancellationToken cancellationToken)
Parameters
contextActivityContextThe activity context.
cancellationTokenCancellationTokenThe cancellation token used to request canceling the activity.
Returns
- Task<bool>
A task that represents the asynchronous operation. The value of its Result property contains the result.
Exceptions
- ArgumentNullException
contextis null.- InvalidOperationException
A service required by the activity is not available, or a required activity property value is not set.
- Exception
An error occurred while performing the activity.