QueueBackgroundWorkItem Method

HostingEnvironment.QueueBackgroundWorkItem Method

 

[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:
© 2016 Microsoft