예제 #1
0
 protected virtual void OnReplyDone(SerialEventArgs info)
 {
     if (ReplyOK != null)
     {
         Task.Run(() => ReplyOK?.Invoke(this, info));
     }
 }
예제 #2
0
파일: Serial.cs 프로젝트: rockxcn/CNCLib
        protected virtual void OnReplyDone(SerialEventArgs info)
        {
            WriteLastCommandReplyType(EReplyType.ReplyOK);

            if (ReplyOK != null)
            {
                Task.Run(() => ReplyOK?.Invoke(this, info));
            }
        }
예제 #3
0
        static private void ZyanServerStartOK(ReplyOK reply)
        {
            Builder.Output("Confirmado inicio de ZyanServer.");

            MessageBus.Remove <RequestStart>(_zyanServer.Start);
            MessageBus.Remove <RequestStop>(_zyanServer.Stop);
            MessageBus.Remove <ReplyOK>(ZyanServerStartOK);
            MessageBus.Remove <SendSystemConfig>(_zyanServer.ReceiveSystemConfig);

            Detenerse = false;
            _areEsperaOperacion.Set();
        }
예제 #4
0
        // Receptor ReplyStart
        // Continuar carga configuracion y ejecucion
        static private void DbHandlerStartOK(ReplyOK reply)
        {
            Builder.Output("DbHandler Start OK");

            // Se elimina para que no ejecute al enviar este mensaje
            // para iniciar los otros modulos
            MessageBus.Remove <RequestStart>(_dbHandler.Start);
            MessageBus.Remove <RequestStop>(_dbHandler.Stop);
            MessageBus.Remove <ReplyOK>(DbHandlerStartOK);

            Detenerse = false;
            _areEsperaOperacion.Set();
        }