private void Stop() { _active = false; _host.QuitProcessRequests(); StartStopButton.Text = "Start"; //TextLabel.Text = $"HttpHost stopped at {DateTime.Now} \n"; }
private void StopPhoneService() { ServiceOnOffButton.Text = "S.On"; if (_phoneServiceStarted) { _phoneServiceStarted = false; _host?.QuitProcessRequests(); // stop CommandToSpeech _piCar.PostSetting("piCar.commandToSpeechMode", "no"); } }