private async void btnSend_Click(object sender, EventArgs e) { if (client != null) { await client.Send(cboEvents.Text); } }
protected async override void OnSessionChange(SessionChangeDescription changeDescription) { string logEntry = string.Format("Session Changed: {0}", changeDescription.Reason.ToString()); eventLog.WriteEntry(logEntry); Logger.WriteLog("SNP.Service", logEntry); await hubClient.Send(changeDescription.Reason.ToString()); }