TransferStateMachine Class

Data shared between ITransferWorker and TransferDriver that is used to manage execution. This class cannot be derived from outside of this assembly, but its public properties can be used to inspect the worker's status after execution.

Definition

Namespace: Quine.FileTransfer
Assembly: Quine.FileTransfer (in Quine.FileTransfer.dll) Version: 1.0.0+6efd94d5454131cfac18f827c2a4172cb83f1e24
C#
public abstract class TransferStateMachine
Inheritance
Object    TransferStateMachine

Properties

BlockSize Size of a single block that is transferred from the producer to the consumers. This is the same value as passed to TransferDriver ctor. Every block, except the last, must be completely filled with data.
CancellationToken Token that MUST be used by implementations on ITransferWorker to check for cancellation. Use ThrowIfCancellationRequested to check for cancellation.
Exception Reflects any errors which occurred during execution (null on successful completion). This property may be accessed only after the execution has completed.
IsFaulted True if execution has failed due to any exception.

See Also