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;
     }
 }
コード例 #3
0
 public bool StartSession()
 {
     try
     {
         svc = new LocalConnectionMessageService(true, channelName);
         isSessionStarted = true;
         return(true);
     }
     catch
     {
         return(false);
     }
 }
 public void StopSession()
 {
     svc = null;
     isSessionStarted = false;
 }
コード例 #5
0
 public void StopSession()
 {
     svc = null;
     isSessionStarted = false;
 }