Пример #1
0
 private async void btnSend_Click(object sender, EventArgs e)
 {
     if (client != null)
     {
         await client.Send(cboEvents.Text);
     }
 }
Пример #2
0
        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());
        }