Class AAssociateRJ
A-ASSOCIATE-RJ
Inheritance
Implements
Inherited Members
Namespace: FellowOakDicom.Network
Assembly: fo-dicom.core.dll
Syntax
public class AAssociateRJ : PDU
Constructors
AAssociateRJ(IMemoryProvider)
Initializes new A-ASSOCIATE-RJ
Declaration
public AAssociateRJ(IMemoryProvider memoryProvider)
Parameters
Type | Name | Description |
---|---|---|
IMemoryProvider | memoryProvider | The memory provider that will be used to allocate buffers |
AAssociateRJ(DicomRejectResult, DicomRejectSource, DicomRejectReason, IMemoryProvider)
Initializes new A-ASSOCIATE-RJ
Declaration
public AAssociateRJ(DicomRejectResult rt, DicomRejectSource so, DicomRejectReason rn, IMemoryProvider memoryProvider)
Parameters
Type | Name | Description |
---|---|---|
DicomRejectResult | rt | Rejection result |
DicomRejectSource | so | Rejection source |
DicomRejectReason | rn | Rejection reason |
IMemoryProvider | memoryProvider | The memory provider that will be used to allocate buffers |
Properties
Reason
Rejection reason
Declaration
public DicomRejectReason Reason { get; }
Property Value
Type | Description |
---|---|
DicomRejectReason |
Result
Rejection result
Declaration
public DicomRejectResult Result { get; }
Property Value
Type | Description |
---|---|
DicomRejectResult |
Source
Rejection source
Declaration
public DicomRejectSource Source { get; }
Property Value
Type | Description |
---|---|
DicomRejectSource |
Methods
Read(RawPDU)
Reads A-ASSOCIATE-RJ from PDU buffer
Declaration
public void Read(RawPDU raw)
Parameters
Type | Name | Description |
---|---|---|
RawPDU | raw | PDU 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()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
WriteAsync(Stream, CancellationToken)
Writes A-ASSOCIATE-RJ to PDU buffer
Declaration
public async Task WriteAsync(Stream stream, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream to write the PDU to |
System.Threading.CancellationToken | cancellationToken | The token that cancels the write operation |
Returns
Type | Description |
---|---|
System.Threading.Tasks.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.