private void SubscribeEvent(DicomServer dicomServer) { dicomServer.OnTransactionAvailable += new DicomServer.TransactionAvailableHandler(TransactionIsAvailable); }
protected void AddDicomServer(DicomServer dicomServer, ActorConfig actorConfig) { int index = DicomConfigPresent(dicomServer.ActorName, actorConfig); if (index != -1) { dicomServer.ApplyConfig((DicomConfig)actorConfig[index]); SubscribeEvent(dicomServer); _dicomServers.Add(dicomServer.ActorName, dicomServer); } }