Skip to main content

FakeHostController

A class in Root.Township, the global namespace.

Do-nothing IServerHostController, bound as the singleton in ApplicationLifetimeScope. Reports itself as an offline server and every method is a no-op.

Constructors​

MemberWhat it is
FakeHostController()Creates a FakeHostController with default values.

Properties​

MemberWhat it is
bool IsOfflineServer { get; }Always true.

Methods​

MemberWhat it is
void CancelEmptyServerShutdown(bool disablePermanently = false)Does nothing.
Task HandlePlayersCountChange(int newCount)Does nothing and returns null rather than a task.
void MarkServerReady()Does nothing.
Task ResetServer()Does nothing and returns null rather than a task.
Task Start()Does nothing and returns null rather than a task.
Task Stop()Does nothing and returns null rather than a task.