public LocalConnectionDataClient(string channelName)
 {
     svc = new LocalConnectionMessageService(false, channelName);
     svc.MessageReceived += svc_MessageReceived;
     timer.Interval = TimeSpan.FromSeconds(1);
     timer.Tick += timer_Tick;
     timer.Start();
 }
 public bool StartSession()
 {
     try
     {
         svc = new LocalConnectionMessageService(true, channelName);
         isSessionStarted = true;
         return true;
     }
     catch 
     {
         return false;
     }
 }
 public bool StartSession()
 {
     try
     {
         svc = new LocalConnectionMessageService(true, channelName);
         isSessionStarted = true;
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 public void StopSession()
 {
     svc = null;
     isSessionStarted = false;
 }
 public void StopSession()
 {
     svc = null;
     isSessionStarted = false;
 }