Interface IAdvancedDicomClientConnection
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
Inherited Members
System.IDisposable.Dispose()
Namespace: FellowOakDicom.Network.Client.Advanced.Connection
Assembly: fo-dicom.core.dll
Syntax
public interface IAdvancedDicomClientConnection : IDicomClientConnection, IDisposable
Methods
OpenAssociationAsync(AdvancedDicomClientAssociationRequest, CancellationToken)
Opens a new DICOM association over an existing TCP connection
Declaration
Task<IAdvancedDicomClientAssociation> OpenAssociationAsync(AdvancedDicomClientAssociationRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AdvancedDicomClientAssociationRequest | request | The request that specifies how the association should be opened |
System.Threading.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
Type | Description |
---|---|
System.Threading.Tasks.Task<IAdvancedDicomClientAssociation> | The opened association if the other AE accepted the association request |
Exceptions
Type | Condition |
---|---|
DicomAssociationRejectedException | When the association is rejected |
DicomAssociationAbortedException | When the association is aborted prematurely |
DicomNetworkException | When the connection is lost without an underlying IO exception |
System.IO.IOException | When the connection is lost |