Class AsyncActionDescriptor
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
ControllerContextThe controller context.
parameters
IDictionary<string, object>The parameters of the action method.
callback
AsyncCallbackThe callback method.
state
objectAn 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
IAsyncResultAn 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
ControllerContextThe controller context.
parameters
IDictionary<string, object>The parameters of the action method.
Returns
- object
The result of executing the asynchronous action method.