Table of Contents

Class AsyncActionDescriptor

Namespace
System.Web.Mvc.Async
Assembly
System.Web.Mvc.dll

Provides information about an asynchronous action method, such as its name, controller, parameters, attributes, and filters.

public abstract class AsyncActionDescriptor : ActionDescriptor, ICustomAttributeProvider
Inheritance
AsyncActionDescriptor
Implements
Derived
Inherited Members

Constructors

AsyncActionDescriptor()

Initializes a new instance of the AsyncActionDescriptor class.

protected AsyncActionDescriptor()

Methods

BeginExecute(ControllerContext, IDictionary<string, object>, AsyncCallback, object)

Invokes the asynchronous action method by using the specified parameters and controller context.

public abstract IAsyncResult BeginExecute(ControllerContext controllerContext, IDictionary<string, object> parameters, AsyncCallback callback, object state)

Parameters

controllerContext ControllerContext

The controller context.

parameters IDictionary<string, object>

The parameters of the action method.

callback AsyncCallback

The callback method.

state object

An object that contains information to be used by the callback method. This parameter can be null.

Returns

IAsyncResult

An object that contains the result of an asynchronous call.

EndExecute(IAsyncResult)

Returns the result of an asynchronous operation.

public abstract object EndExecute(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

An object that represents the status of an asynchronous operation.

Returns

object

The result of an asynchronous operation.

Execute(ControllerContext, IDictionary<string, object>)

Executes the asynchronous action method by using the specified parameters and controller context.

public override object Execute(ControllerContext controllerContext, IDictionary<string, object> parameters)

Parameters

controllerContext ControllerContext

The controller context.

parameters IDictionary<string, object>

The parameters of the action method.

Returns

object

The result of executing the asynchronous action method.