protected void AddHl7Server(ActorNameEnum actorName, ActorConfig actorConfig) { int index = Hl7ConfigPresent(actorName, actorConfig); if (index != -1) { Hl7Server hl7Server = new Hl7Server(this, actorName, (Hl7Config)actorConfig[index]); SubscribeEvent(hl7Server); _hl7Servers.Add(actorName, hl7Server); } }
private void SubscribeEvent(Hl7Server hl7Server) { hl7Server.OnTransactionAvailable += new Hl7Server.TransactionAvailableHandler(TransactionIsAvailable); }