Anvil
Anvil.Services.IServiceManager Interface Reference

The interface that manages all core, anvil and plugin services.
Advanced: implement in your own class and specify in AnvilCore.Init(System.IntPtr,int,IServiceManager) to implement your own service manager. More...

Public Member Functions

void Init ()
 Called during NWNX initialization. Core services should be initialized here. More...
 
void Load ()
 Called after module load. All other anvil/plugin services should be populated in the container here. More...
 
void Shutdown ()
 Called after the server is shut down/destroyed. Core services should be unloaded here. More...
 
void Start ()
 Called after all services have been loaded and just before the module is ready to play. Run any last routines on all services here. More...
 
void Unload ()
 Called before the server is shutting down/reloading. Anvil/plugin services should be unloaded here. More...
 

Properties

ServiceContainer AnvilServiceContainer [get]
 The container holding services for anvil and anvil plugins. More...
 
ServiceContainer CoreServiceContainer [get]
 The container holding internal core services. (logging, function hooking, etc). More...
 

Detailed Description

The interface that manages all core, anvil and plugin services.
Advanced: implement in your own class and specify in AnvilCore.Init(System.IntPtr,int,IServiceManager) to implement your own service manager.

Member Function Documentation

◆ Init()

void Anvil.Services.IServiceManager.Init ( )

Called during NWNX initialization. Core services should be initialized here.

◆ Load()

void Anvil.Services.IServiceManager.Load ( )

Called after module load. All other anvil/plugin services should be populated in the container here.

◆ Shutdown()

void Anvil.Services.IServiceManager.Shutdown ( )

Called after the server is shut down/destroyed. Core services should be unloaded here.

◆ Start()

void Anvil.Services.IServiceManager.Start ( )

Called after all services have been loaded and just before the module is ready to play. Run any last routines on all services here.

◆ Unload()

void Anvil.Services.IServiceManager.Unload ( )

Called before the server is shutting down/reloading. Anvil/plugin services should be unloaded here.

Property Documentation

◆ AnvilServiceContainer

ServiceContainer Anvil.Services.IServiceManager.AnvilServiceContainer
get

The container holding services for anvil and anvil plugins.

◆ CoreServiceContainer

ServiceContainer Anvil.Services.IServiceManager.CoreServiceContainer
get

The container holding internal core services. (logging, function hooking, etc).


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