Class Controller
Base class for a server script.
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
Declaration
protected readonly ILogger Logger
Field Value
Methods
|
Improve this Doc
View Source
_(String)
Declaration
public static string _(string text)
Parameters
Type |
Name |
Description |
String |
text |
|
Returns
|
Improve this Doc
View Source
_(String, Object[])
Declaration
public static string _(string text, params object[] args)
Parameters
Returns
|
Improve this Doc
View Source
_n(String, String, Int64)
Declaration
public static string _n(string text, string pluralText, long n)
Parameters
Returns
|
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
Returns
|
Improve this Doc
View Source
_p(String, String)
Declaration
public static string _p(string context, string text)
Parameters
Returns
|
Improve this Doc
View Source
_p(String, String, Object[])
Declaration
public static string _p(string context, string text, params object[] args)
Parameters
Returns
|
Improve this Doc
View Source
_pn(String, String, String, Int64)
Declaration
public static string _pn(string context, string text, string pluralText, long n)
Parameters
Returns
|
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
Returns
|
Improve this Doc
View Source
Delay(Int32)
Declaration
protected Task Delay(int ms)
Parameters
Type |
Name |
Description |
Int32 |
ms |
|
Returns
|
Improve this Doc
View Source
Delay(TimeSpan)
Declaration
protected Task Delay(TimeSpan delay)
Parameters
Returns
|
Improve this Doc
View Source
Loaded()
Declaration
public virtual Task Loaded()
Returns
|
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