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
stream
INetworkStreamNetwork stream on which DICOM communication is establshed.
fallbackEncoding
EncodingText encoding if not specified within messaging.
log
ILoggerDICOM logger.
dependencies
DicomServiceDependencies
Methods
OnCEchoRequestAsync(DicomCEchoRequest)
Event handler for C-ECHO request.
public virtual Task<DicomCEchoResponse> OnCEchoRequestAsync(DicomCEchoRequest request)
Parameters
request
DicomCEchoRequestC-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
exception
ExceptionException, 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
source
DicomAbortSourceAbort source.
reason
DicomAbortReasonDetailed 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
association
DicomAssociationDICOM association corresponding to the request.