本文整理汇总了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;
}
示例2: OnReceiveAbort
public void OnReceiveAbort(DicomClient client, ClientAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
{
throw new Exception("The method or operation is not implemented.");
}
示例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");
}
}
示例4:
void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
{
Platform.Log(LogLevel.Error, "Unexpected association abort received.");
}
示例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();
}
示例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);
}
示例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));
}
示例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();
}
示例9: DicomAssociationAbortedException
public DicomAssociationAbortedException(DicomAbortSource source, DicomAbortReason reason) : base("Association Abort [source: {0}; reason: {1}]", source, reason) {
AbortSource = source;
AbortReason = reason;
}
示例10:
void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association,
DicomAbortSource source, DicomAbortReason reason)
{
VBLogger.LogError("Unexpected association abort received.");
}
示例11: OnReceiveAbort
public void OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
{
}
示例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);
}
示例13: AAbort
public AAbort(DicomAbortSource s, DicomAbortReason r)
{
_s = s; _r = r;
}
示例14: OnReceiveAbort
public void OnReceiveAbort(DicomAbortSource source, DicomAbortReason reason)
{
this.SetComplete();
throw new DicomAssociationAbortedException(source, reason);
}
示例15: Read
public void Read(RawPDU raw)
{
raw.ReadByte("Reserved");
raw.ReadByte("Reserved");
_s = (DicomAbortSource)raw.ReadByte("Source");
_r = (DicomAbortReason)raw.ReadByte("Reason");
}