NFive API Reference

NFive API Reference

    Show / Hide Table of Contents

    Class Controller

    Base class for a server script.

    Inheritance
    Object
    Controller
    ConfigurableController<T>
    Namespace: NFive.SDK.Server.Controllers
    Assembly: NFive.SDK.Server.net.dll
    Syntax
    public abstract class Controller

    Constructors

    | Improve this Doc View Source

    Controller(ILogger)

    Initializes a new instance of the Controller class.

    Declaration
    protected Controller(ILogger logger)
    Parameters
    Type Name Description
    ILogger logger

    The message logger.

    Fields

    | Improve this Doc View Source

    Catalog

    Declaration
    protected static ILocaleCatalog Catalog
    Field Value
    Type Description
    ILocaleCatalog
    | Improve this Doc View Source

    Logger

    The message logger,

    Declaration
    protected readonly ILogger Logger
    Field Value
    Type Description
    ILogger

    Methods

    | Improve this Doc View Source

    _(String)

    Declaration
    public static string _(string text)
    Parameters
    Type Name Description
    String text
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _(String, Object[])

    Declaration
    public static string _(string text, params object[] args)
    Parameters
    Type Name Description
    String text
    Object[] args
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _n(String, String, Int64)

    Declaration
    public static string _n(string text, string pluralText, long n)
    Parameters
    Type Name Description
    String text
    String pluralText
    Int64 n
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _n(String, String, Int64, Object[])

    Declaration
    public static string _n(string text, string pluralText, long n, params object[] args)
    Parameters
    Type Name Description
    String text
    String pluralText
    Int64 n
    Object[] args
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _p(String, String)

    Declaration
    public static string _p(string context, string text)
    Parameters
    Type Name Description
    String context
    String text
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _p(String, String, Object[])

    Declaration
    public static string _p(string context, string text, params object[] args)
    Parameters
    Type Name Description
    String context
    String text
    Object[] args
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _pn(String, String, String, Int64)

    Declaration
    public static string _pn(string context, string text, string pluralText, long n)
    Parameters
    Type Name Description
    String context
    String text
    String pluralText
    Int64 n
    Returns
    Type Description
    String
    | Improve this Doc View Source

    _pn(String, String, String, Int64, Object[])

    Declaration
    public static string _pn(string context, string text, string pluralText, long n, params object[] args)
    Parameters
    Type Name Description
    String context
    String text
    String pluralText
    Int64 n
    Object[] args
    Returns
    Type Description
    String
    | Improve this Doc View Source

    Delay(Int32)

    Declaration
    protected Task Delay(int ms)
    Parameters
    Type Name Description
    Int32 ms
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    Delay(TimeSpan)

    Declaration
    protected Task Delay(TimeSpan delay)
    Parameters
    Type Name Description
    TimeSpan delay
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    Loaded()

    Declaration
    public virtual Task Loaded()
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    Reload()

    Reloads this controllers configuration.

    Declaration
    public virtual void Reload()
    | Improve this Doc View Source

    Started()

    Declaration
    public virtual Task Started()
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2019 NFive