/// <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"); }
/// <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()); }
protected virtual void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason) { throw new NotImplementedException(); }
protected override void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason) { _closedOnError = true; Close(); }
/// <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; }
/// <summary> /// Initializes new A-ABORT /// </summary> public AAbort() { _s = DcmAbortSource.ServiceUser; _r = DcmAbortReason.NotSpecified; }