Partager via


AsyncManager Class

Provides asynchronous operations for the AsyncController class.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.Async.AsyncManager

Namespace:  System.Web.Mvc.Async
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Class AsyncManager
public class AsyncManager
public ref class AsyncManager

The AsyncManager type exposes the following members.

Constructors

  Name Description
Public method AsyncManager() Initializes a new instance of the AsyncManager class.
Public method AsyncManager(SynchronizationContext) Initializes a new instance of the AsyncManager class using the synchronization context.

Top

Properties

  Name Description
Public property OutstandingOperations Gets the number of outstanding operations.
Public property Parameters Gets the parameters that were passed to the asynchronous completion method.
Public property Timeout Gets or sets the asynchronous timeout value, in milliseconds.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Finish Notifies ASP.NET that all asynchronous operations are complete.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Sync Executes a callback in the current synchronization context.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Events

  Name Description
Public event Finished Occurs when the Finish method is called.

Top

Examples

A Visual Studio project with source code is available to accompany this topic: Download.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Mvc.Async Namespace