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
controllerContextControllerContextThe controller context.
actionNamestringThe name of the asynchronous action.
callbackAsyncCallbackThe callback method.
stateobjectThe state.
Returns
- IAsyncResult
The status of the asynchronous result.
EndInvokeAction(IAsyncResult)
Cancels the asynchronous action.
bool EndInvokeAction(IAsyncResult asyncResult)
Parameters
asyncResultIAsyncResultThe asynchronous result.
Returns
- bool
true if the asynchronous method could be canceled; otherwise, false.