private void StopServer() { if(Running) _server.Stop(); _server = null; UpdateButtons(); }
private void StartServer() { _server = new SourceRESTfulService(Port) {AllowRemoteConnections = AllowRemoteConnections}; _server.Scenario = Scenario; _server.LogGenerator += ServerLogEvent; _server.Start(); _port = _server.Port; PortTxt.GetBindingExpression(TextBox.TextProperty).UpdateTarget(); _server.Service.AllowScript = AllowScripts; UpdateButtons(); }