当前位置: 首页>>代码示例>>C#>>正文


C# DicomClient.SendReleaseRequest方法代码示例

本文整理汇总了C#中ClearCanvas.Dicom.Network.DicomClient.SendReleaseRequest方法的典型用法代码示例。如果您正苦于以下问题:C# DicomClient.SendReleaseRequest方法的具体用法?C# DicomClient.SendReleaseRequest怎么用?C# DicomClient.SendReleaseRequest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ClearCanvas.Dicom.Network.DicomClient的用法示例。


在下文中一共展示了DicomClient.SendReleaseRequest方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnReceiveResponseMessage

 public void OnReceiveResponseMessage(DicomClient client, ClientAssociationParameters association, byte presentationID, DicomMessage message)
 {
     client.SendReleaseRequest();
     Assert.AreEqual(message.Status.Code, DicomStatuses.Success.Code, "Incorrect DICOM status returned");
 }
开发者ID:tcchau,项目名称:ClearCanvas,代码行数:5,代码来源:AssociationTests.cs

示例2: OnReceiveAssociateAccept

        public void OnReceiveAssociateAccept(DicomClient client, ClientAssociationParameters association)
        {
            Logger.LogInfo("Association Accepted:\r\n{0}", association.ToString());

            _fileListIndex = 0;

            bool ok = SendCStore(client, association);
            while (ok == false)
            {
                _fileListIndex++;
                if (_fileListIndex >= _fileList.Count)
                {
                    Logger.LogInfo("Completed sending C-STORE-RQ messages, releasing association.");
                    client.SendReleaseRequest();
                    return;
                }
                ok = SendCStore(client, association);
            }
        }
开发者ID:khaha2210,项目名称:radio,代码行数:19,代码来源:StorageScu.cs

示例3: OnReceiveResponseMessage

        public void OnReceiveResponseMessage(DicomClient client, ClientAssociationParameters association, byte presentationID, DicomMessage message)
        {
            if (message.Status.Status != DicomState.Success)
            {
                Logger.LogError("Failure status received in sending C-STORE: {0}", message.Status.Description);
            }

            bool ok = false;
            while (ok == false)
            {
                _fileListIndex++;
                if (_fileListIndex >= _fileList.Count)
                {
                    Logger.LogInfo("Completed sending C-STORE-RQ messages, releasing association.");
                    client.SendReleaseRequest();
                    return;
                }

                ok = SendCStore(client, association);
            }
        }
开发者ID:khaha2210,项目名称:radio,代码行数:21,代码来源:StorageScu.cs

示例4: OnReceiveResponseMessage

 public void OnReceiveResponseMessage(DicomClient client, ClientAssociationParameters association, byte presentationID, DicomMessage message)
 {
     if (message.Status.Status != DicomState.Success)
     {
         Logger.LogError("Failure status received in sending verification: {0}", message.Status.Description);
         _verificationResult = VerificationResult.Failed;
     }
     else if (_verificationResult == VerificationResult.Canceled)
     {
         Logger.LogInfo("Verification was canceled");
     }
     else
     {
         Logger.LogInfo("Success status received in sending verification!");
         _verificationResult = VerificationResult.Success;
     }
     client.SendReleaseRequest();
     ProgressEvent.Set();
 }
开发者ID:khaha2210,项目名称:radio,代码行数:19,代码来源:VerificationScu.cs


注:本文中的ClearCanvas.Dicom.Network.DicomClient.SendReleaseRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。