Table of Contents

Class AsyncTimeoutAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public class AsyncTimeoutAttribute : ActionFilterAttribute, IMvcFilter, IActionFilter, IResultFilter
Inheritance
AsyncTimeoutAttribute
Implements
Derived
Inherited Members

Constructors

AsyncTimeoutAttribute(int)

Initializes a new instance of the AsyncTimeoutAttribute class.

public AsyncTimeoutAttribute(int duration)

Parameters

duration int

The timeout value, in milliseconds.

Properties

Duration

Gets the timeout duration, in milliseconds.

public int Duration { get; }

Property Value

int

The timeout duration, in milliseconds.

Methods

OnActionExecuting(ActionExecutingContext)

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

public override void OnActionExecuting(ActionExecutingContext filterContext)

Parameters

filterContext ActionExecutingContext

The filter context.