ISuspendibleRegisteredObject Interface

ISuspendibleRegisteredObject Interface


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

Listens for suspend and resume notifications.

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

public interface ISuspendibleRegisteredObject : IRegisteredObject


Requests a registered object to unregister.(Inherited from IRegisteredObject.)


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

Called when ASP.NET notifies an application that a process is being suspended.

.NET Framework
Available since 4.5.1

Instance members of this type are not guaranteed to be thread safe. You can call the Suspend method at any time, including during a call to another method on this same object, during calls to other objects' Suspend methods, or even during a call to this object's Suspend method. Because the execution of these methods is multithreaded, there is an interval in which the Suspend method can be called even after a call to the UnregisterObject method has completed.

If an application passes to the RegisterObject method an object that implements the ISuspendibleRegisteredObject interface, the hosting environment will subscribe the object to listen for suspend or resume notifications.

Return to top
© 2015 Microsoft