private static void RaiseServerStopped() { CurrentState = ServerState.Stopped; RaiseServerStatusChanged(); SpecificServerStatusEvent handler = ServerStopped; if (handler != null) { handler(); } }
private static void RaiseUnexpectedServerStop() { SpecificServerStatusEvent handler = UnexpectedServerStop; CurrentState = ServerState.Stopped; RaiseServerStatusChanged(); if (handler != null) { handler(); } }
private static void RaiseUnexpectedServerStop() { SpecificServerStatusEvent handler = UnexpectedServerStop; CurrentState = ServerState.Stopped; Logger.Log(LogLevel.Info, "ProcessHandler", "The server stopped unexpectedly!"); RaiseServerStatusChanged(); if (handler != null) { handler(); } }