Class AsyncControllerActionInvoker
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
controllerContextControllerContextThe controller context.
actionNamestringThe name of the action.
callbackAsyncCallbackThe callback method.
stateobjectAn 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
controllerContextControllerContextThe controller context.
actionDescriptorActionDescriptorThe action descriptor.
parametersIDictionary<string, object>The parameters for the asynchronous action method.
callbackAsyncCallbackThe callback method.
stateobjectAn 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
controllerContextControllerContextThe controller context.
filtersIList<IActionFilter>The filters.
actionDescriptorActionDescriptorThe action descriptor.
parametersIDictionary<string, object>The parameters for the asynchronous action method.
callbackAsyncCallbackThe callback method.
stateobjectAn 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
asyncResultIAsyncResultThe 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
asyncResultIAsyncResultThe 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
asyncResultIAsyncResultThe 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
controllerContextControllerContextThe controller context.
Returns
- ControllerDescriptor
The controller descriptor.