Anvil
Anvil.Services.ILateDisposable Interface Reference

Interface that is invoked after the server has been shutdown. Not called during hot reloads. More...

Public Member Functions

void LateDispose ()
 

Detailed Description

Interface that is invoked after the server has been shutdown. Not called during hot reloads.

This interface should only be used to release function hooks, or to replicate data that was written during server shutdown (e.g. characters).
When this is called, the server instance has already been destroyed, and you cannot access any APIs.
Implement System.IDisposable instead to receive a callback just before server shutdown.


The documentation for this interface was generated from the following file: