Ejemplo n.º 1
0
 private async void btnSend_Click(object sender, EventArgs e)
 {
     if (client != null)
     {
         await client.Send(cboEvents.Text);
     }
 }
Ejemplo n.º 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());
        }