Class AsyncDicomCEchoProvider
Implementation of an asynchronous C-ECHO Service Class Provider.
Implements
Inherited Members
Namespace: Dicom.Network
Assembly: cs.temp.dll.dll
Syntax
public class AsyncDicomCEchoProvider : DicomService, IDicomServiceRunner, IDisposable, IDicomServiceProvider, IDicomService, IAsyncDicomCEchoProvider
Constructors
AsyncDicomCEchoProvider(INetworkStream, Encoding, Logger)
Initializes an instance of the DicomCEchoProvider class.
Declaration
public AsyncDicomCEchoProvider(INetworkStream stream, Encoding fallbackEncoding, Logger log)
Parameters
Type | Name | Description |
---|---|---|
INetworkStream | stream | Network stream on which DICOM communication is establshed. |
Encoding | fallbackEncoding | Text encoding if not specified within messaging. |
Logger | log | DICOM logger. |
Methods
OnCEchoRequestAsync(DicomCEchoRequest)
Event handler for C-ECHO request.
Declaration
public Task<DicomCEchoResponse> OnCEchoRequestAsync(DicomCEchoRequest request)
Parameters
Type | Name | Description |
---|---|---|
DicomCEchoRequest | request | C-ECHO request. |
Returns
Type | Description |
---|---|
Task<DicomCEchoResponse> | C-ECHO response with Success status. |
OnConnectionClosed(Exception)
Callback when connection is closed.
Declaration
public void OnConnectionClosed(Exception exception)
Parameters
Type | Name | Description |
---|---|---|
Exception | exception | Exception, if any, that forced connection to close. |
OnReceiveAbort(DicomAbortSource, DicomAbortReason)
Callback on recieving an abort message.
Declaration
public void OnReceiveAbort(DicomAbortSource source, DicomAbortReason reason)
Parameters
Type | Name | Description |
---|---|---|
DicomAbortSource | source | Abort source. |
DicomAbortReason | reason | Detailed reason for abort. |
OnReceiveAssociationReleaseRequestAsync()
Callback to invoke when receiving an association release request.
Declaration
public Task OnReceiveAssociationReleaseRequestAsync()
Returns
Type | Description |
---|---|
Task |
OnReceiveAssociationRequestAsync(DicomAssociation)
Callback to invoke when receiving an association request.
Declaration
public Task OnReceiveAssociationRequestAsync(DicomAssociation association)
Parameters
Type | Name | Description |
---|---|---|
DicomAssociation | association | DICOM association corresponding to the request. |
Returns
Type | Description |
---|---|
Task |