public void TriggerActor(ActorNameEnum actorName, BaseTrigger trigger) { // can only trigger an actor that is started if (_actorState == ActorStateEnum.ActorStarted) { if (trigger is Hl7Trigger) { Hl7Client hl7Client = GetHl7Client(actorName); if (hl7Client != null) { hl7Client.TriggerClient(actorName, trigger); } } else { DicomClient dicomClient = GetDicomClient(actorName); if (dicomClient != null) { dicomClient.TriggerClient(actorName, trigger); } } } }
public DicomScu(DicomClient dicomClient) : base(false) { _dicomClient = dicomClient; }
protected void AddDicomClient(DicomClient dicomClient, ActorConfig actorConfig) { int index = DicomConfigPresent(dicomClient.ActorName, actorConfig); if (index != -1) { dicomClient.ApplyConfig( (DicomConfig)actorConfig[index]); _dicomClients.Add(dicomClient.ActorName, dicomClient); } }