예제 #1
0
 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);
             }
         }
     }
 }
예제 #2
0
파일: DicomClient.cs 프로젝트: ewcasas/DVTK
 public DicomScu(DicomClient dicomClient)
     : base(false)
 {
     _dicomClient = dicomClient;
 }
예제 #3
0
파일: BaseActor.cs 프로젝트: ewcasas/DVTK
 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);
     }
 }
예제 #4
0
 public DicomScu(DicomClient dicomClient) : base(false)
 {
     _dicomClient = dicomClient;
 }