Class AAbort
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
A-ABORT
public class AAbort : PDU
- Inheritance
-
AAbort
- Implements
- Inherited Members
- Extension Methods
Constructors
AAbort(IMemoryProvider)
Initializes new A-ABORT
public AAbort(IMemoryProvider memoryProvider)
Parameters
memoryProviderIMemoryProviderThe memory provider that will be used to allocate buffers
AAbort(DicomAbortSource, DicomAbortReason, IMemoryProvider)
Initializes new A-ABORT
public AAbort(DicomAbortSource source, DicomAbortReason reason, IMemoryProvider memoryProvider)
Parameters
sourceDicomAbortSourceAbort source
reasonDicomAbortReasonAbort reason
memoryProviderIMemoryProviderThe memory provider that will be used to allocate buffers
Properties
Reason
Abort reason
public DicomAbortReason Reason { get; }
Property Value
Source
Abort source
public DicomAbortSource Source { get; }
Property Value
Methods
Read(RawPDU)
Reads A-ABORT from PDU buffer
public void Read(RawPDU raw)
Parameters
rawRawPDUPDU buffer
ToString()
public override string ToString()
Returns
WriteAsync(Stream, CancellationToken)
Writes A-ABORT to the provided stream
public Task WriteAsync(Stream stream, CancellationToken cancellationToken)
Parameters
streamStreamThe stream to write the PDU to
cancellationTokenCancellationTokenThe token that cancels the write operation
Returns
- Task
A Task that represents the asynchronous operation