Click or drag to resize

OperationContinuation Class

Allows the outcome of a OperationResult to be delayed.
Inheritance Hierarchy
SystemObject
  FastProxyOperationContinuation

Namespace:  FastProxy
Assembly:  FastProxy (in FastProxy.dll) Version: 0.2.0.0
Syntax
C#
public class OperationContinuation

The OperationContinuation type exposes the following members.

Constructors
  NameDescription
Public methodOperationContinuation
Top
Properties
  NameDescription
Public propertyResult
Gets the OperationResult controlled by this OperationContinuation.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetCallback
Sets the callback to be called when the outcome is set.
Public methodSetOutcome
Sets the outcome of the pending operation.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

The purpose of the OperationContinuation class is to produce a OperationResult the outcome of which will be decided at a later time.

A use case of this class is the ThrottlingListener. If the budget is exceeded in a specific time frame, it'll return a Pending outcome. Then, at the end of the time slice, it processes all pending outcomes and allows them to continue. This spreads out data transfer over time.

See Also