WebHostCancellationManager Class
Provides an implementation of IHostCancellationManager that hooks into the ASP.NET IRegisteredObject for listening to when the ASP.NET app domain is taken down. Tasks which need this behavior can request a CancellationToken to listen for when and if the app domain is about to be taken down.
Assembly: Microsoft.WindowsAzure.Mobile.Service.WebHost (in Microsoft.WindowsAzure.Mobile.Service.WebHost.dll)
| Name | Description | |
|---|---|---|
![]() | WebHostCancellationManager() |
| Name | Description | |
|---|---|---|
![]() | HostCancellationToken | Gets a CancellationToken which will fire if the host is about to shut down. This is a signal that the task monitoring this cancellation token should finish up as soon as possible. Typically a host such as ASP.NET provides a 30 delay after this signal has been sent before the task is unregistered and the app domain is taken down. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | |
![]() | Dispose(Boolean) | |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | RegisterObject(IRegisteredObject) | |
![]() | Start() | Call this method to register this WebHostCancellationManager instance with the ASP.NET host manager. |
![]() | Stop(Boolean) | Is called by the ASP.NET infrastructure when ASP.NET is about to take down the app domain. See IRegisteredObject for more information. |
![]() | ToString() | (Inherited from Object.) |
![]() | UnregisterObject(IRegisteredObject) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)
.jpeg?cs-save-lang=1&cs-lang=vb)