Exemple #1
0
 /// <summary>
 /// Reads A-ABORT from PDU buffer
 /// </summary>
 /// <param name="raw">PDU buffer</param>
 public void Read(RawPDU raw)
 {
     raw.ReadByte("Reserved");
     raw.ReadByte("Reserved");
     _s = (DcmAbortSource)raw.ReadByte("Source");
     _r = (DcmAbortReason)raw.ReadByte("Reason");
 }
Exemple #2
0
 /// <summary>
 /// The ACSE A-ABORT service shall be used by a requestor in either of the AEs 
 /// to cause the abnormal release of the association. It shall be a non-confirmed 
 /// service. However, because of the possibility of an A-ABORT service procedure 
 /// collision, the delivery of the indication primitive is not guaranteed. Should
 /// such a collision occur, both AEs are aware that the association has been 
 /// terminated. The abort shall be performed through A-ABORT request and A-ABORT 
 /// indication primitives.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="reason"></param>
 protected void SendAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     Log.Info("{0} -> Abort [source: {1}; reason: {2}]", LogID, source, reason);
     AAbort pdu = new AAbort(source, reason);
     SendRawPDU(pdu.Write());
 }
Exemple #3
0
 protected virtual void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 protected override void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _closedOnError = true;
     Close();
 }
Exemple #5
0
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 /// <param name="source">Abort source</param>
 /// <param name="reason">Abort reason</param>
 public AAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _s = source; _r = reason;
 }
Exemple #6
0
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 public AAbort()
 {
     _s = DcmAbortSource.ServiceUser;
     _r = DcmAbortReason.NotSpecified;
 }
Exemple #7
0
 protected override void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _closedOnError = true;
     Close();
 }
Exemple #8
0
 /// <summary>
 /// Reads A-ABORT from PDU buffer
 /// </summary>
 /// <param name="raw">PDU buffer</param>
 public void Read(RawPDU raw)
 {
     raw.ReadByte("Reserved");
     raw.ReadByte("Reserved");
     _s = (DcmAbortSource)raw.ReadByte("Source");
     _r = (DcmAbortReason)raw.ReadByte("Reason");
 }
Exemple #9
0
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 /// <param name="source">Abort source</param>
 /// <param name="reason">Abort reason</param>
 public AAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _s = source; _r = reason;
 }
Exemple #10
0
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 public AAbort()
 {
     _s = DcmAbortSource.ServiceUser;
     _r = DcmAbortReason.NotSpecified;
 }