Class AAssociateRJ
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
A-ASSOCIATE-RJ
public class AAssociateRJ : PDU
- Inheritance
-
AAssociateRJ
- Implements
- Inherited Members
- Extension Methods
Constructors
AAssociateRJ(IMemoryProvider)
Initializes new A-ASSOCIATE-RJ
public AAssociateRJ(IMemoryProvider memoryProvider)
Parameters
memoryProvider
IMemoryProviderThe memory provider that will be used to allocate buffers
AAssociateRJ(DicomRejectResult, DicomRejectSource, DicomRejectReason, IMemoryProvider)
Initializes new A-ASSOCIATE-RJ
public AAssociateRJ(DicomRejectResult rt, DicomRejectSource so, DicomRejectReason rn, IMemoryProvider memoryProvider)
Parameters
rt
DicomRejectResultRejection result
so
DicomRejectSourceRejection source
rn
DicomRejectReasonRejection reason
memoryProvider
IMemoryProviderThe memory provider that will be used to allocate buffers
Properties
Reason
Rejection reason
public DicomRejectReason Reason { get; }
Property Value
Result
Rejection result
public DicomRejectResult Result { get; }
Property Value
Source
Rejection source
public DicomRejectSource Source { get; }
Property Value
Methods
Read(RawPDU)
Reads A-ASSOCIATE-RJ from PDU buffer
public void Read(RawPDU raw)
Parameters
raw
RawPDUPDU buffer
Remarks
When reading the rejection reason, the previously read DicomRejectSource value is combined with the numerical reject reason from the RawPDU object to yield numerical values that matches the members of the DicomRejectReason enumeration.
ToString()
public override string ToString()
Returns
WriteAsync(Stream, CancellationToken)
Writes A-ASSOCIATE-RJ to PDU buffer
public Task WriteAsync(Stream stream, CancellationToken cancellationToken)
Parameters
stream
StreamThe stream to write the PDU to
cancellationToken
CancellationTokenThe token that cancels the write operation
Returns
- Task
A Task that represents the asynchronous operation
Remarks
When writing the rejection reason to the RawPDU object, the DicomRejectSource specification in the underlying value is masked out, to ensure that the reason code matches the codes specified in Table 9-21 of DICOM Standard PS 3.8.