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


C# DicomAbortSource类代码示例

本文整理汇总了C#中DicomAbortSource的典型用法代码示例。如果您正苦于以下问题:C# DicomAbortSource类的具体用法?C# DicomAbortSource怎么用?C# DicomAbortSource使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: AAbort

		/// <summary>
		/// Initializes new A-ABORT
		/// </summary>
		/// <param name="source">Abort source</param>
		/// <param name="reason">Abort reason</param>
		public AAbort(DicomAbortSource source, DicomAbortReason reason) {
			_s = source; _r = reason;
		}
开发者ID:dremerdt,项目名称:fo-dicom,代码行数:8,代码来源:PDU.cs

示例2: OnReceiveAbort

 public void OnReceiveAbort(DicomClient client, ClientAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
 {
     throw new Exception("The method or operation is not implemented.");
 }
开发者ID:nhannd,项目名称:Xian,代码行数:4,代码来源:CFindSCU.cs

示例3: SendAssociateAbort

        /// <summary>
        /// Method to send an association abort PDU.
        /// </summary>
        /// <param name="source">The source of the abort.</param>
        /// <param name="reason">The reason for the abort.</param>
        public void SendAssociateAbort(DicomAbortSource source, DicomAbortReason reason)
        {
            if (State != DicomAssociationState.Sta13_AwaitingTransportConnectionClose)
            {
                var pdu = new AAbort(source, reason);

                EnqueuePdu(pdu.Write());
                State = DicomAssociationState.Sta13_AwaitingTransportConnectionClose;


                if (AssociationAborted != null)
                    AssociationAborted(_assoc, reason);
            }
            else
            {
                Platform.Log(LogLevel.Error, "Unexpected state for association abort, closing connection from {0} to {1}",
                                     _assoc.CallingAE, _assoc.CalledAE);

				OnNetworkError(null, true);

                if (NetworkClosed != null)
                    NetworkClosed("Unexpected state for association abort");
            }
        }
开发者ID:UIKit0,项目名称:ClearCanvas,代码行数:29,代码来源:NetworkBase.cs

示例4:

	    void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
        {
			Platform.Log(LogLevel.Error, "Unexpected association abort received.");
        }
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:4,代码来源:StorageScp.cs

示例5: SendAbort

 /// <summary>
 /// Send abort request.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="reason"></param>
 protected void SendAbort(DicomAbortSource source, DicomAbortReason reason)
 {
     Logger.Info("{logId} -> Abort [source: {source}; reason: {reason}]", LogID, source, reason);
     this.SendPDUAsync(new AAbort(source, reason)).Wait();
 }
开发者ID:gustavosaita,项目名称:fo-dicom,代码行数:10,代码来源:DicomService.cs

示例6: OnReceiveAbort

 public void OnReceiveAbort(DicomAbortSource source, DicomAbortReason reason)
 {
     //stop printing operation
     //log the abort reason
     this.Logger.Error("Received abort from {0}, reason is {1}", source, reason);
 }
开发者ID:dremerdt,项目名称:fo-dicom,代码行数:6,代码来源:PrintService.cs

示例7: SendAbort

		protected void SendAbort(DicomAbortSource source, DicomAbortReason reason) {
			Logger.Info("{0} -> Abort [source: {1}; reason: {2}]", LogID, source, reason);
			SendPDU(new AAbort(source, reason));
		}
开发者ID:raysearchlabs,项目名称:fo-dicom,代码行数:4,代码来源:DicomService.cs

示例8:

 void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
 {
     _cancelReceived = true;
     Platform.Log(LogLevel.Info,string.Format("Unexpected association abort received."));
     //_sessionDebug.DumpSession();
    
 }
开发者ID:khaha2210,项目名称:radio,代码行数:7,代码来源:MWLScp.cs

示例9: DicomAssociationAbortedException

		public DicomAssociationAbortedException(DicomAbortSource source, DicomAbortReason reason) : base("Association Abort [source: {0}; reason: {1}]", source, reason) {
			AbortSource = source;
			AbortReason = reason;
		}
开发者ID:ZeryZhang,项目名称:fo-dicom,代码行数:4,代码来源:DicomAssociationAbortedException.cs

示例10:

 void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association,
                                         DicomAbortSource source, DicomAbortReason reason)
 {
     VBLogger.LogError("Unexpected association abort received.");
 }
开发者ID:khaha2210,项目名称:radio,代码行数:5,代码来源:StorageScp.cs

示例11: OnReceiveAbort

		public void OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
		{
		}
开发者ID:nhannd,项目名称:Xian,代码行数:3,代码来源:Form1.cs

示例12: RemoveAllAssociationMppsFromCache

 void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
 {
     Platform.Log(LogLevel.Info, "Unexpected association abort received.");
     //_sessionDebug.DumpSession();
     RemoveAllAssociationMppsFromCache(association);
 }
开发者ID:khaha2210,项目名称:radio,代码行数:6,代码来源:MPPSScp.cs

示例13: AAbort

 public AAbort(DicomAbortSource s, DicomAbortReason r)
 {
     _s = s; _r = r;
 }
开发者ID:yjsyyyjszf,项目名称:ClearCanvas-1,代码行数:4,代码来源:PDU.cs

示例14: OnReceiveAbort

 public void OnReceiveAbort(DicomAbortSource source, DicomAbortReason reason)
 {
     this.SetComplete();
     throw new DicomAssociationAbortedException(source, reason);
 }
开发者ID:gustavosaita,项目名称:fo-dicom,代码行数:5,代码来源:DicomClient.cs

示例15: Read

 public void Read(RawPDU raw)
 {
     raw.ReadByte("Reserved");
     raw.ReadByte("Reserved");
     _s = (DicomAbortSource)raw.ReadByte("Source");
     _r = (DicomAbortReason)raw.ReadByte("Reason");
 }
开发者ID:yjsyyyjszf,项目名称:ClearCanvas-1,代码行数:7,代码来源:PDU.cs


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