Interface IAdvancedDicomClientConnection
- Namespace
- FellowOakDicom.Network.Client.Advanced.Connection
- Assembly
- fo-dicom.core.dll
Represents an open DICOM connection, which contains two things:
- An open TCP socket to the port where the other AE is running
- A DICOM listener that collects incoming DICOM messages over this socket
public interface IAdvancedDicomClientConnection : IDicomClientConnection, IDisposable
- Inherited Members
- Extension Methods
Methods
OpenAssociationAsync(AdvancedDicomClientAssociationRequest, CancellationToken)
Opens a new DICOM association over an existing TCP connection
Task<IAdvancedDicomClientAssociation> OpenAssociationAsync(AdvancedDicomClientAssociationRequest request, CancellationToken cancellationToken)
Parameters
request
AdvancedDicomClientAssociationRequestThe request that specifies how the association should be opened
cancellationToken
CancellationTokenThe token that will cancel the opening of the association. Depending on the timing, this may leave the connection unusable, it is safest to always reopen a new connection if cancellation occurred.
Returns
- Task<IAdvancedDicomClientAssociation>
The opened association if the other AE accepted the association request
Exceptions
- DicomAssociationRejectedException
When the association is rejected
- DicomAssociationAbortedException
When the association is aborted prematurely
- DicomNetworkException
When the connection is lost without an underlying IO exception
- IOException
When the connection is lost