private async void btnStopServer_Click(object sender, EventArgs e) { if (Server != null) { await Server.StopAsync(); } }