Table of Contents

Interface IAdvancedDicomClientConnection

Namespace
FellowOakDicom.Network.Client.Advanced.Connection
Assembly
fo-dicom.core.dll

Represents an open DICOM connection, which contains two things:

  1. An open TCP socket to the port where the other AE is running
  2. 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 AdvancedDicomClientAssociationRequest

The request that specifies how the association should be opened

cancellationToken CancellationToken

The 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