Table of Contents

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 IMemoryProvider

The 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 DicomRejectResult

Rejection result

so DicomRejectSource

Rejection source

rn DicomRejectReason

Rejection reason

memoryProvider IMemoryProvider

The memory provider that will be used to allocate buffers

Properties

Reason

Rejection reason

public DicomRejectReason Reason { get; }

Property Value

DicomRejectReason

Result

Rejection result

public DicomRejectResult Result { get; }

Property Value

DicomRejectResult

Source

Rejection source

public DicomRejectSource Source { get; }

Property Value

DicomRejectSource

Methods

Read(RawPDU)

Reads A-ASSOCIATE-RJ from PDU buffer

public void Read(RawPDU raw)

Parameters

raw RawPDU

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()

public override string ToString()

Returns

string

WriteAsync(Stream, CancellationToken)

Writes A-ASSOCIATE-RJ to PDU buffer

public Task WriteAsync(Stream stream, CancellationToken cancellationToken)

Parameters

stream Stream

The stream to write the PDU to

cancellationToken CancellationToken

The 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.