コード例 #1
0
ファイル: BaseServer.cs プロジェクト: ewcasas/DVTK
        public void PublishEvent(ActorNameEnum actorName, BaseTransaction transaction)
        {
            TransactionAvailableEventArgs transactionAvailableEvent = new TransactionAvailableEventArgs(actorName, transaction);

            if (OnTransactionAvailable != null)
            {
                OnTransactionAvailable(this, transactionAvailableEvent);
            }
        }
コード例 #2
0
        public void PublishEvent(ActorNameEnum actorName, BaseTransaction transaction)
        {
            TransactionAvailableEventArgs transactionAvailableEvent = new TransactionAvailableEventArgs(actorName, transaction);

            if (OnTransactionAvailable != null)
            {
                OnTransactionAvailable(this, transactionAvailableEvent);
            }
        }
コード例 #3
0
 public void TransactionIsAvailable(object server, TransactionAvailableEventArgs transactionAvailableEvent)
 {
     // handle the new transaction
     if (transactionAvailableEvent.Transaction is Hl7Transaction)
     {
         HandleTransactionFrom(transactionAvailableEvent.ActorName, (Hl7Transaction)transactionAvailableEvent.Transaction);
     }
     else
     {
         HandleTransactionFrom(transactionAvailableEvent.ActorName, (DicomTransaction)transactionAvailableEvent.Transaction);
     }
 }
コード例 #4
0
ファイル: BaseActor.cs プロジェクト: ewcasas/DVTK
 public void TransactionIsAvailable(object server, TransactionAvailableEventArgs transactionAvailableEvent)
 {
     // handle the new transaction
     if (transactionAvailableEvent.Transaction is Hl7Transaction)
     {
         HandleTransactionFrom(transactionAvailableEvent.ActorName, (Hl7Transaction)transactionAvailableEvent.Transaction);
     }
     else
     {
         HandleTransactionFrom(transactionAvailableEvent.ActorName, (DicomTransaction)transactionAvailableEvent.Transaction);
     }
 }