Class DicomCEchoProvider
- Namespace
- FellowOakDicom.Network
- Assembly
- fo-dicom.core.dll
Implementation of a C-ECHO Service Class Provider.
public class DicomCEchoProvider : DicomService, IDicomServiceRunner, IDisposable, IDicomServiceProvider, IDicomService, IDicomCEchoProvider
- Inheritance
-
DicomCEchoProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
DicomCEchoProvider(INetworkStream, Encoding, ILogger, DicomServiceDependencies)
Initializes an instance of the DicomCEchoProvider class.
public DicomCEchoProvider(INetworkStream stream, Encoding fallbackEncoding, ILogger log, DicomServiceDependencies dependencies)
Parameters
streamINetworkStreamNetwork stream on which DICOM communication is establshed.
fallbackEncodingEncodingText encoding if not specified within messaging.
logILoggerDICOM logger.
dependenciesDicomServiceDependencies
Methods
OnCEchoRequestAsync(DicomCEchoRequest)
Event handler for C-ECHO request.
public virtual Task<DicomCEchoResponse> OnCEchoRequestAsync(DicomCEchoRequest request)
Parameters
requestDicomCEchoRequestC-ECHO request.
Returns
- Task<DicomCEchoResponse>
C-ECHO response with Success status.
OnConnectionClosed(Exception)
Callback when connection is closed.
public virtual void OnConnectionClosed(Exception exception)
Parameters
exceptionExceptionException, if any, that forced connection to close.
OnReceiveAbort(DicomAbortSource, DicomAbortReason)
Callback on recieving an abort message.
public virtual void OnReceiveAbort(DicomAbortSource source, DicomAbortReason reason)
Parameters
sourceDicomAbortSourceAbort source.
reasonDicomAbortReasonDetailed reason for abort.
OnReceiveAssociationReleaseRequestAsync()
Callback to invoke when receiving an association release request.
public virtual Task OnReceiveAssociationReleaseRequestAsync()
Returns
OnReceiveAssociationRequestAsync(DicomAssociation)
Callback to invoke when receiving an association request.
public virtual Task OnReceiveAssociationRequestAsync(DicomAssociation association)
Parameters
associationDicomAssociationDICOM association corresponding to the request.