Export (0) Print
Expand All

TaskAsyncActionDescriptor Class

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

Namespace:  System.Web.Mvc.Async
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

type TaskAsyncActionDescriptor =  
    class 
        inherit AsyncActionDescriptor 
    end

The TaskAsyncActionDescriptor type exposes the following members.

  NameDescription
Public methodTaskAsyncActionDescriptorInitializes a new instance of the TaskAsyncActionDescriptor class.
Top

  NameDescription
Public propertyActionNameGets the name of the action method. (Overrides ActionDescriptor.ActionName.)
Public propertyControllerDescriptorGets the controller descriptor. (Overrides ActionDescriptor.ControllerDescriptor.)
Public propertyTaskMethodInfoGets information for the asynchronous task.
Public propertyUniqueIdGets the unique ID for the task. (Overrides ActionDescriptor.UniqueId.)
Top

  NameDescription
Public methodBeginExecuteInvokes the asynchronous action method using the specified parameters, controller context callback and state. (Overrides AsyncActionDescriptor.BeginExecute(ControllerContext, IDictionary(String, Object), AsyncCallback, Object).)
Public methodEndExecuteEnds the asynchronous operation. (Overrides AsyncActionDescriptor.EndExecute(IAsyncResult).)
Public methodEquals (Inherited from Object.)
Public methodExecuteExecutes the asynchronous action method (Overrides AsyncActionDescriptor.Execute(ControllerContext, IDictionary(String, Object)).)
Protected methodFinalize (Inherited from Object.)
Public methodGetCustomAttributes(Boolean)Returns an array of custom attributes that are defined for this member, excluding named attributes. (Overrides ActionDescriptor.GetCustomAttributes(Boolean).)
Public methodGetCustomAttributes(Type, Boolean)Returns an array of custom attributes that are defined for this member, identified by type. (Overrides ActionDescriptor.GetCustomAttributes(Type, Boolean).)
Public methodGetFilterAttributesReturns an array of all custom attributes applied to this member. (Overrides ActionDescriptor.GetFilterAttributes(Boolean).)
Public methodGetFilters Obsolete. Returns the filters that are associated with this action method. (Inherited from ActionDescriptor.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetParametersReturns the parameters of the asynchronous action method. (Overrides ActionDescriptor.GetParameters().)
Public methodGetSelectorsReturns the asynchronous action-method selectors. (Overrides ActionDescriptor.GetSelectors().)
Public methodGetType (Inherited from Object.)
Public methodIsDefinedReturns a value that indicates whether one or more instance of the specified custom attribute are defined for this member. (Overrides ActionDescriptor.IsDefined(Type, Boolean).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft