Ejemplo n.º 1
0
 public void AcceptFrame(MatrixRequest request)
 {
     switch (request.Command)
     {
     case 24:
         var hm = ServiceLocator.Current.GetInstance <HandlerManager>();
         Session.ChangeState(hm.Get("alarm"));
         break;
     }
     //parse frame here
     logger.Debug("поступил пакет {0}", string.Join(",", request.Body.Select(b => b.ToString("X2"))));
 }
Ejemplo n.º 2
0
 public void AcceptFrame(MatrixRequest request)
 {
 }
Ejemplo n.º 3
0
 public void AcceptFrame(MatrixRequest request)
 {
     buffer.AddRange(request.Body);
     logger.Debug("к драйверу {0}", string.Join(",", buffer.Select(b => b.ToString("X2"))));
 }