TaskAsyncActionDescriptor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |
Initializes a new instance of the TaskAsyncActionDescriptor class. |
Properties
ActionName |
Gets the name of the action method. |
ControllerDescriptor |
Gets the controller descriptor. |
MethodInfo | |
TaskMethodInfo |
Gets information for the asynchronous task. |
UniqueId |
Gets the unique ID for the task. |
Methods
BeginExecute(ControllerContext, IDictionary<String,Object>, AsyncCallback, Object) |
Invokes the asynchronous action method using the specified parameters, controller context callback and state. |
EndExecute(IAsyncResult) |
Ends the asynchronous operation. |
Execute(ControllerContext, IDictionary<String,Object>) |
Executes the asynchronous action method |
GetCustomAttributes(Boolean) |
Returns an array of custom attributes that are defined for this member, excluding named attributes. |
GetCustomAttributes(Type, Boolean) |
Returns an array of custom attributes that are defined for this member, identified by type. |
GetFilterAttributes(Boolean) |
Returns an array of all custom attributes applied to this member. |
GetFilters() |
Obsolete.
Returns the filters that are associated with this action method. (Inherited from ActionDescriptor) |
GetParameters() |
Returns the parameters of the asynchronous action method. |
GetSelectors() |
Returns the asynchronous action-method selectors. |
IsDefined(Type, Boolean) |
Returns a value that indicates whether one or more instance of the specified custom attribute are defined for this member. |