Interface IShutdown
- Namespace
- MonkeyLoader.Meta
- Assembly
- MonkeyLoader.dll
Defines the interface for everything that can be shut down.
public interface IShutdown
Properties
ShutdownFailed
Gets whether this object's Shutdown() failed when it was called.
bool ShutdownFailed { get; }
Property Value
ShutdownRan
Gets whether this object's Shutdown() method has been called.
bool ShutdownRan { get; }
Property Value
Methods
Shutdown(bool)
Lets this object cleanup and shutdown.
Must only be called once.
bool Shutdown(bool applicationExiting)
Parameters
applicationExiting
boolWhether the shutdown was caused by the application exiting.
Returns
- bool
true
if it ran successfully; otherwise,false
.
Exceptions
- InvalidOperationException
If it gets called more than once.
Events
ShutdownDone
Called when something has shut down.
event ShutdownHandler? ShutdownDone
Event Type
ShuttingDown
Called when something is about to shut down.
event ShutdownHandler? ShuttingDown