Table of Contents

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, IActivity
Inheritance
ReleaseUnit
Implements
Inherited Members

Remarks

If the unit cannot be released for some reason (e.g., due to an active test that cannot be canceled), this will not fail.

This activity requires the IUnitAtStationService service (automatically provided by Acuit Pinpoint Workstation).

Methods

OnExecuteAsync(ActivityContext, CancellationToken)

Derived classes must implement this to perform the activity.

protected override Task OnExecuteAsync(ActivityContext context, CancellationToken cancellationToken)

Parameters

context ActivityContext

The activity context.

cancellationToken CancellationToken

The cancellation token used to request canceling the activity.

Returns

Task

A task that represents the asynchronous operation.

Exceptions

ArgumentNullException

context is null.

InvalidOperationException

A service required by the activity is not available, or a required activity property value is not set. This will only occur asynchronously, wrapped in an AggregateException as the faulted task's Exception.

Exception

An error occurred while performing the activity. This will only occur asynchronously, wrapped in an AggregateException as the faulted task's Exception.