TaskAsyncActionDescriptor TaskAsyncActionDescriptor TaskAsyncActionDescriptor Class

Definition

When an action method returns either Task or Task<T> the TaskAsyncActionDescriptor provides information about the action.

public class TaskAsyncActionDescriptor : System.Web.Mvc.Async.AsyncActionDescriptor, System.Web.Mvc.IMethodInfoActionDescriptor
type TaskAsyncActionDescriptor = class
    inherit AsyncActionDescriptor
    interface IMethodInfoActionDescriptor
Public Class TaskAsyncActionDescriptor
Inherits AsyncActionDescriptor
Implements IMethodInfoActionDescriptor
Inheritance
Implements

Constructors

TaskAsyncActionDescriptor(MethodInfo, String, ControllerDescriptor) TaskAsyncActionDescriptor(MethodInfo, String, ControllerDescriptor) TaskAsyncActionDescriptor(MethodInfo, String, ControllerDescriptor)

Initializes a new instance of the TaskAsyncActionDescriptor class.

Properties

ActionName ActionName ActionName

Gets the name of the action method.

ControllerDescriptor ControllerDescriptor ControllerDescriptor

Gets the controller descriptor.

MethodInfo MethodInfo MethodInfo
TaskMethodInfo TaskMethodInfo TaskMethodInfo

Gets information for the asynchronous task.

UniqueId UniqueId UniqueId

Gets the unique ID for the task.

Methods

BeginExecute(ControllerContext, IDictionary<String,Object>, AsyncCallback, Object) BeginExecute(ControllerContext, IDictionary<String,Object>, AsyncCallback, Object) BeginExecute(ControllerContext, IDictionary<String,Object>, AsyncCallback, Object)

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

EndExecute(IAsyncResult) EndExecute(IAsyncResult) EndExecute(IAsyncResult)

Ends the asynchronous operation.

Execute(ControllerContext, IDictionary<String,Object>) Execute(ControllerContext, IDictionary<String,Object>) Execute(ControllerContext, IDictionary<String,Object>)

Executes the asynchronous action method

GetCustomAttributes(Boolean) GetCustomAttributes(Boolean) GetCustomAttributes(Boolean)

Returns an array of custom attributes that are defined for this member, excluding named attributes.

GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean) GetCustomAttributes(Type, Boolean)

Returns an array of custom attributes that are defined for this member, identified by type.

GetFilterAttributes(Boolean) GetFilterAttributes(Boolean) GetFilterAttributes(Boolean)

Returns an array of all custom attributes applied to this member.

GetFilters() GetFilters() GetFilters()

Returns the filters that are associated with this action method.

(Inherited from ActionDescriptor)
GetParameters() GetParameters() GetParameters()

Returns the parameters of the asynchronous action method.

GetSelectors() GetSelectors() GetSelectors()

Returns the asynchronous action-method selectors.

IsDefined(Type, Boolean) IsDefined(Type, Boolean) IsDefined(Type, Boolean)

Returns a value that indicates whether one or more instance of the specified custom attribute are defined for this member.

Applies to