Click or drag to resize

ProcessTerminator Methods

The ProcessTerminator type exposes the following members.

Methods
  NameDescription
Public methodAddDisposable
Adds a IDisposable instance that will be disposed when the process is being terminated. This can be a handy way to hook AsyncPeriodicTask and other components into a ProcessTerminator.
Public methodAddHandler
Adds a termination handler.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExit
Cleanly terminates the current process.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodReadyToExit
Indicates that the application has gracefully stopped and is ready to be terminated.
Public methodSignal
Emulates a signal instructing the service to close. This will typically be used for unit testing services.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also