Class AdvancedDicomClientConnectionFactory
- Namespace
- FellowOakDicom.Network.Client.Advanced.Connection
- Assembly
- fo-dicom.core.dll
public static class AdvancedDicomClientConnectionFactory
- Inheritance
-
AdvancedDicomClientConnectionFactory
- Inherited Members
Methods
OpenConnectionAsync(AdvancedDicomClientConnectionRequest, CancellationToken)
Opens a new TCP connection to another AE using the parameters provided in the connection request
WARNING: you cannot reuse a single connection for multiple associations
public static Task<IAdvancedDicomClientConnection> OpenConnectionAsync(AdvancedDicomClientConnectionRequest request, CancellationToken cancellationToken)
Parameters
requestAdvancedDicomClientConnectionRequestThe connection request that specifies the details of the connection that should be opened
cancellationTokenCancellationTokenThe token that will cancel the opening of the connection
Returns
- Task<IAdvancedDicomClientConnection>
A new instance of IAdvancedDicomClientConnection