Table of Contents

Interface IAsyncActionInvoker

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

Defines the interface for an action invoker, which is used to invoke an asynchronous action in response to an HTTP request.

public interface IAsyncActionInvoker : IActionInvoker
Inherited Members

Methods

BeginInvokeAction(ControllerContext, string, AsyncCallback, object)

Invokes the specified action.

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

Parameters

controllerContext ControllerContext

The controller context.

actionName string

The name of the asynchronous action.

callback AsyncCallback

The callback method.

state object

The state.

Returns

IAsyncResult

The status of the asynchronous result.

EndInvokeAction(IAsyncResult)

Cancels the asynchronous action.

bool EndInvokeAction(IAsyncResult asyncResult)

Parameters

asyncResult IAsyncResult

The asynchronous result.

Returns

bool

true if the asynchronous method could be canceled; otherwise, false.