IServerConfigurationΒΆ

interface IServerConfiguration

The server configuration interface. All of the implementations of T:Protogame.IServerConfiguration are instantiated at startup and are used to configure the dependency injection system and the server.

void ConfigureKernel(IKernel kernel)

Called at application startup to configure the kernel before the server is created.

Parameters:
  • kernel (Protoinject.IKernel) – The dependency injection kernel.
Protogame.ICoreServer ConstructServer(IKernel kernel)

Called at application startup to construct the main server instance. This instance will be run as the main server.

Parameters:
  • kernel (Protoinject.IKernel) – The dependency injection kernel.
Returns:

The server instance to run.