TaskAsyncActionDescriptor 类

定义

当操作方法返回 Task 或 Task<T> 时,会 TaskAsyncActionDescriptor 提供有关操作的信息。

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
继承
TaskAsyncActionDescriptor
实现

构造函数

TaskAsyncActionDescriptor(MethodInfo, String, ControllerDescriptor)

初始化 TaskAsyncActionDescriptor 类的新实例。

属性

ActionName

获取操作方法的名称。

ControllerDescriptor

获取控制器描述符。

MethodInfo

当操作方法返回 Task 或 Task<T> 时,会 TaskAsyncActionDescriptor 提供有关操作的信息。

TaskMethodInfo

获取异步任务的信息。

UniqueId

获取任务的唯一 ID。

方法

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

使用指定的参数、控制器上下文回调和状态调用异步操作方法。

EndExecute(IAsyncResult)

结束异步操作。

Execute(ControllerContext, IDictionary<String,Object>)

执行异步操作方法

GetCustomAttributes(Boolean)

返回为此成员定义的自定义特性的数组,指定的特性除外。

GetCustomAttributes(Type, Boolean)

返回为此成员定义的、按类型标识的自定义属性数组。

GetFilterAttributes(Boolean)

返回应用于此成员的所有自定义特性的数组。

GetFilters()
已过时.

返回与此操作方法关联的筛选器。

(继承自 ActionDescriptor)
GetParameters()

返回异步操作方法的参数。

GetSelectors()

返回异步操作方法选择器。

IsDefined(Type, Boolean)

返回一个值,用于指示是否为此成员定义了指定自定义特性的一个或多个实例。

适用于