public void StopServer() { try { _remoteServer = _serviceProvider.GetRequiredService <RemoteStageServer>(); _remoteServer.Stop(); } catch { } }
public void RunServer() { _remoteServer = _serviceProvider.GetRequiredService <RemoteStageServer>(); _remoteServer.Run().GetAwaiter().GetResult(); }