NFive API Reference

NFive API Reference

    Show / Hide Table of Contents

    Class ConfigurableController<T>

    Base class for a server script with automatically loaded configuration file.

    Inheritance
    Object
    Controller
    ConfigurableController<T>
    Inherited Members
    Controller.Catalog
    Controller.Logger
    Controller._(String)
    Controller._(String, Object[])
    Controller._n(String, String, Int64)
    Controller._n(String, String, Int64, Object[])
    Controller._p(String, String)
    Controller._p(String, String, Object[])
    Controller._pn(String, String, String, Int64)
    Controller._pn(String, String, String, Int64, Object[])
    Controller.Loaded()
    Controller.Started()
    Controller.Reload()
    Controller.Delay(Int32)
    Controller.Delay(TimeSpan)
    Namespace: NFive.SDK.Server.Controllers
    Assembly: NFive.SDK.Server.net.dll
    Syntax
    public abstract class ConfigurableController<T> : Controller where T : IControllerConfiguration
    Type Parameters
    Name Description
    T

    The type of the configuration to load.

    Constructors

    | Improve this Doc View Source

    ConfigurableController(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 Source

    Configuration

    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 Source

    Reload(T)

    Reloads this controllers configuration.

    Declaration
    public virtual void Reload(T configuration)
    Parameters
    Type Name Description
    T configuration

    The updated controller configuration.

    See Also

    Controller
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2019 NFive