OperationContinuation Class |
Namespace: FastProxy
public class OperationContinuation
The OperationContinuation type exposes the following members.
| Name | Description | |
|---|---|---|
| OperationContinuation |
| Name | Description | |
|---|---|---|
| Result |
Gets the OperationResult controlled by this OperationContinuation.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetCallback |
Sets the callback to be called when the outcome is set.
| |
| SetOutcome |
Sets the outcome of the pending operation.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.