Application

Main program class

Warning: Don't run at once more than one instance of server. Workaround for vibe.d lack of handler removing relies on that there is one running server at current moment.

Constructors

this
this(ILogger logger, Options options, AppConfig config)

Construct Application from ILogger, Options and AppConfig

Members

Functions

finalize
void finalize(bool finalizeLog)

Stops the server from any thread.

logger
shared(ILogger) logger()

Return current application logger

restart
shared(Application) restart()

Recreates new application object with refreshed config. New app reuses old logger, old application is terminated.

run
int run()

runs the server

Meta

Authors

Zaramzan <shamyan.roman@gmail.com>