Class AsyncManager
Provides asynchronous operations for the AsyncController class.
public class AsyncManager
- Inheritance
-
AsyncManager
- Inherited Members
Constructors
AsyncManager()
Initializes a new instance of the AsyncManager class.
public AsyncManager()
AsyncManager(SynchronizationContext)
Initializes a new instance of the AsyncManager class using the synchronization context.
public AsyncManager(SynchronizationContext syncContext)
Parameters
syncContext
SynchronizationContextThe synchronization context.
Properties
OutstandingOperations
Gets the number of outstanding operations.
public OperationCounter OutstandingOperations { get; }
Property Value
- OperationCounter
The number of outstanding operations.
Parameters
Gets the parameters that were passed to the asynchronous completion method.
public IDictionary<string, object> Parameters { get; }
Property Value
- IDictionary<string, object>
The parameters that were passed to the asynchronous completion method.
Timeout
Gets or sets the asynchronous timeout value, in milliseconds.
public int Timeout { get; set; }
Property Value
- int
The asynchronous timeout value, in milliseconds.
Methods
Finish()
Notifies ASP.NET that all asynchronous operations are complete.
public virtual void Finish()
Sync(Action)
Executes a callback in the current synchronization context.
public virtual void Sync(Action action)
Parameters
action
ActionThe asynchronous action.
Events
Finished
Occurs when the Finish() method is called.
public event EventHandler Finished