protected virtual void OnReplyDone(SerialEventArgs info) { if (ReplyOK != null) { Task.Run(() => ReplyOK?.Invoke(this, info)); } }
protected virtual void OnReplyDone(SerialEventArgs info) { WriteLastCommandReplyType(EReplyType.ReplyOK); if (ReplyOK != null) { Task.Run(() => ReplyOK?.Invoke(this, info)); } }
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(); }
// 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(); }