Class ConfigurableController<T>
Base class for a server script with automatically loaded configuration file.
Inherited Members
Namespace: NFive.SDK.Server.Controllers
Assembly: NFive.SDK.Server.net.dll
Syntax
public abstract class ConfigurableController<T> : Controller where T : IControllerConfigurationType Parameters
| Name | Description | 
|---|---|
| T | The type of the configuration to load. | 
Constructors
| Improve this Doc View SourceConfigurableController(ILogger, T)
Initializes a new instance of the ConfigurableController<T> class.
Declaration
protected ConfigurableController(ILogger logger, T configuration)Parameters
| Type | Name | Description | 
|---|---|---|
| ILogger | logger | The message logger. | 
| T | configuration | The configuration loaded from file. | 
Properties
| Improve this Doc View SourceConfiguration
Gets the configuration loaded from file.
Declaration
protected T Configuration { get; }Property Value
| Type | Description | 
|---|---|
| T | The configuration loaded from file. | 
Methods
| Improve this Doc View SourceReload(T)
Reloads this controllers configuration.
Declaration
public virtual void Reload(T configuration)Parameters
| Type | Name | Description | 
|---|---|---|
| T | configuration | The updated controller configuration. |