AsyncTimeoutAttribute AsyncTimeoutAttribute AsyncTimeoutAttribute Class

Definition

Represents an attribute that is used to set the timeout value, in milliseconds, for an asynchronous method.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public class AsyncTimeoutAttribute : System.Web.Mvc.ActionFilterAttribute
type AsyncTimeoutAttribute = class
    inherit ActionFilterAttribute
Public Class AsyncTimeoutAttribute
Inherits ActionFilterAttribute
Inheritance
Derived
Attributes

Constructors

AsyncTimeoutAttribute(Int32) AsyncTimeoutAttribute(Int32) AsyncTimeoutAttribute(Int32)

Initializes a new instance of the AsyncTimeoutAttribute class.

Properties

AllowMultiple AllowMultiple AllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.

(Inherited from FilterAttribute)
Duration Duration Duration

Gets the timeout duration, in milliseconds.

Order Order Order

Gets or sets the order in which the action filters are executed.

(Inherited from FilterAttribute)

Methods

OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext) OnActionExecuted(ActionExecutedContext)

Called by the ASP.NET MVC framework after the action method executes.

(Inherited from ActionFilterAttribute)
OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext) OnActionExecuting(ActionExecutingContext)

Called by ASP.NET before the asynchronous action method executes.

OnResultExecuted(ResultExecutedContext) OnResultExecuted(ResultExecutedContext) OnResultExecuted(ResultExecutedContext)

Called by the ASP.NET MVC framework after the action result executes.

(Inherited from ActionFilterAttribute)
OnResultExecuting(ResultExecutingContext) OnResultExecuting(ResultExecutingContext) OnResultExecuting(ResultExecutingContext)

Called by the ASP.NET MVC framework before the action result executes.

(Inherited from ActionFilterAttribute)

Applies to