本文整理汇总了C#中DicomAbortReason类的典型用法代码示例。如果您正苦于以下问题:C# DicomAbortReason类的具体用法?C# DicomAbortReason怎么用?C# DicomAbortReason使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DicomAbortReason类属于命名空间,在下文中一共展示了DicomAbortReason类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnReceiveAbort
public void OnReceiveAbort(DicomClient client, ClientAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
{
throw new Exception("The method or operation is not implemented.");
}
示例2: AAbort
/// <summary>
/// Initializes new A-ABORT
/// </summary>
public AAbort() {
_s = DicomAbortSource.ServiceUser;
_r = DicomAbortReason.NotSpecified;
}
示例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: AAbort
public AAbort(DicomAbortSource s, DicomAbortReason r)
{
_s = s; _r = r;
}
示例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:
void IDicomServerHandler.OnReceiveAbort(DicomServer server, ServerAssociationParameters association, DicomAbortSource source, DicomAbortReason reason)
{
_cancelReceived = true;
Logger.LogInfo("Unexpected association abort received.");
_sessionDebug.DumpSession();
}
示例14: OnAssociationAborted
/// <summary>
/// Event handler called when an association has been aborted.
/// </summary>
/// <param name="assoc">The aborted association</param>
/// <param name="reason">The abort reason</param>
protected void OnAssociationAborted(AssociationParameters assoc, DicomAbortReason reason)
{
if (_assocStats == null)
return;
// update the association statistics
_assocStats.IncomingBytes = assoc.TotalBytesRead;
_assocStats.OutgoingBytes = assoc.TotalBytesSent;
// signal stop recording.. the statistic object will fill out whatever
// it needs at this point based on what we have set
_assocStats.End();
}
示例15: OnReceiveAbort
public void OnReceiveAbort(DicomAbortSource source, DicomAbortReason reason)
{
this.SetComplete();
throw new DicomAssociationAbortedException(source, reason);
}