Click or drag to resize

ShutdownService Methods

The ShutdownService type exposes the following members.

Methods
 NameDescription
Public methodAddBackgroundTask Adds a background task on which the application should wait on shutdown. Use this method for tasks that asynchronously write state to disk and should not be interrupted by the application closing down.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOnClosing Executes the multi-stage application shutdown.
Protected methodOnClosingStage1_ReasonsPreventingShutdown Executes shutdown stage 1, which checks whether shutdown is currently blocked.
Protected methodOnClosingStage10_PropertyServiceSaveToFile Executes shutdown stage 10, which saves the property service to persistent storage.
Protected methodOnClosingStage2_CloseProject Executes shutdown stage 2, which closes the current project if necessary.
Protected methodOnClosingStage3_SignalShutdownToken Executes shutdown stage 3, which signals the shutdown tokens and raises shutdown events.
Protected methodOnClosingStage4_CloseAllViews Executes shutdown stage 4, which closes all views.
Protected methodOnClosingStage5_DisposePads Executes shutdown stage 5, which disposes all pads.
Protected methodOnClosingStage6_StopComServer Executes shutdown stage 6, which stops the local COM server.
Protected methodOnClosingStage7_DisposeProject Executes shutdown stage 7, which disposes the current project.
Protected methodOnClosingStage8_WaitForBackgroundTasks Executes shutdown stage 8, which waits for background tasks to complete.
Protected methodOnClosingStage9_DisposeServices Executes shutdown stage 9, which disposes registered services.
Public methodPreventShutdown Prevents shutdown with the following reason. Dispose the returned value to allow shutdown again.
Public methodShutdown Attempts to close the IDE.
Public methodSignalShutdownToken Signals the shutdown cancellation token.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also