Class DicomCEchoProvider
Implementation of a C-ECHO Service Class Provider.
Inherited Members
Namespace: Dicom.Network
Assembly: cs.temp.dll.dll
Syntax
public class DicomCEchoProvider : DicomService, IDicomServiceRunner, IDisposable, IDicomServiceProvider, IDicomService, IDicomCEchoProvider
Constructors
DicomCEchoProvider(INetworkStream, Encoding, Logger)
Initializes an instance of the DicomCEchoProvider class.
Declaration
public DicomCEchoProvider(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
OnCEchoRequest(DicomCEchoRequest)
Event handler for C-ECHO request.
Declaration
public DicomCEchoResponse OnCEchoRequest(DicomCEchoRequest request)
Parameters
Type | Name | Description |
---|---|---|
DicomCEchoRequest | request | C-ECHO request. |
Returns
Type | Description |
---|---|
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 |