Interface IAsyncActionInvoker
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
ControllerContextThe controller context.
actionName
stringThe name of the asynchronous action.
callback
AsyncCallbackThe callback method.
state
objectThe state.
Returns
- IAsyncResult
The status of the asynchronous result.
EndInvokeAction(IAsyncResult)
Cancels the asynchronous action.
bool EndInvokeAction(IAsyncResult asyncResult)
Parameters
asyncResult
IAsyncResultThe asynchronous result.
Returns
- bool
true if the asynchronous method could be canceled; otherwise, false.