HttpContextWrapper.AllowAsyncDuringSyncStages Property

Definition

Gets or sets a value that indicates whether asynchronous operations are allowed during parts of ASP.NET request processing when they are not expected.

C#
public override bool AllowAsyncDuringSyncStages { get; set; }

Property Value

false if ASP.NET will throw an exception when the asynchronous API is used at a time when it is not expected; otherwise, true. The default value is false.

Remarks

For more information, see HttpContext.AllowAsyncDuringSyncStages.

Applies to

Produit Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1