Table of Contents

Class AsyncControllerActionInvoker

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

Represents a class that is responsible for invoking the action methods of an asynchronous controller.

public class AsyncControllerActionInvoker : ControllerActionInvoker, IAsyncActionInvoker, IActionInvoker
Inheritance
AsyncControllerActionInvoker
Implements
Inherited Members

Constructors

AsyncControllerActionInvoker()

Initializes a new instance of the AsyncControllerActionInvoker class.

public AsyncControllerActionInvoker()

Methods

BeginInvokeAction(ControllerContext, string, AsyncCallback, object)

Invokes the asynchronous action method by using the specified controller context, action name, callback method, and state.

public virtual IAsyncResult BeginInvokeAction(ControllerContext controllerContext, string actionName, AsyncCallback callback, object state)

Parameters

controllerContext ControllerContext

The controller context.

actionName string

The name of the action.

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 operation.ImplementsBeginInvokeAction(ControllerContext, string, AsyncCallback, object)

BeginInvokeActionMethod(ControllerContext, ActionDescriptor, IDictionary<string, object>, AsyncCallback, object)

Invokes the asynchronous action method by using the specified controller context, action descriptor, parameters, callback method, and state.

protected virtual IAsyncResult BeginInvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary<string, object> parameters, AsyncCallback callback, object state)

Parameters

controllerContext ControllerContext

The controller context.

actionDescriptor ActionDescriptor

The action descriptor.

parameters IDictionary<string, object>

The parameters for the asynchronous 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 operation.

BeginInvokeActionMethodWithFilters(ControllerContext, IList<IActionFilter>, ActionDescriptor, IDictionary<string, object>, AsyncCallback, object)

Invokes the asynchronous action method by using the specified controller context, filters, action descriptor, parameters, callback method, and state.

protected virtual IAsyncResult BeginInvokeActionMethodWithFilters(ControllerContext controllerContext, IList<IActionFilter> filters, ActionDescriptor actionDescriptor, IDictionary<string, object> parameters, AsyncCallback callback, object state)

Parameters

controllerContext ControllerContext

The controller context.

filters IList<IActionFilter>

The filters.

actionDescriptor ActionDescriptor

The action descriptor.

parameters IDictionary<string, object>

The parameters for the asynchronous 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 operation.

EndInvokeAction(IAsyncResult)

Cancels the action.

public virtual bool EndInvokeAction(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

The user-defined object that qualifies or contains information about an asynchronous operation.

Returns

bool

true if the action was canceled; otherwise, false.

EndInvokeActionMethod(IAsyncResult)

Cancels the action.

protected virtual ActionResult EndInvokeActionMethod(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

The user-defined object that qualifies or contains information about an asynchronous operation.

Returns

ActionResult

true if the action was canceled; otherwise, false.

EndInvokeActionMethodWithFilters(IAsyncResult)

Cancels the action.

protected virtual ActionExecutedContext EndInvokeActionMethodWithFilters(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

The user-defined object that qualifies or contains information about an asynchronous operation.

Returns

ActionExecutedContext

true if the action was canceled; otherwise, false.

GetControllerDescriptor(ControllerContext)

Returns the controller descriptor.

protected override ControllerDescriptor GetControllerDescriptor(ControllerContext controllerContext)

Parameters

controllerContext ControllerContext

The controller context.

Returns

ControllerDescriptor

The controller descriptor.