HostingEnvironment.QueueBackgroundWorkItem Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

[Supported in the .NET Framework 4.5.2 and later versions]

Schedules a task which can run in the background, independent of any request.

This overloaded method doesn’t flow the ExecutionContext or SecurityContext from the caller to the callee. Therefore, members of those objects, such as the CurrentPrincipal property, will not flow from the caller to the callee.

Namespace:   System.Web.Hosting
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticQueueBackgroundWorkItem(Action<CancellationToken>)

[Supported in the .NET Framework 4.5.2 and later versions]

Schedules a task which can run in the background, independent of any request.

System_CAPS_pubmethodSystem_CAPS_staticQueueBackgroundWorkItem(Func<CancellationToken, Task>)

[Supported in the .NET Framework 4.5.2 and later versions]

Schedules a task which can run in the background, independent of any request.

Return to top
Show: