Class AdvancedDicomClientConnectionFactory
Inheritance
System.Object
AdvancedDicomClientConnectionFactory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FellowOakDicom.Network.Client.Advanced.Connection
Assembly: fo-dicom.core.dll
Syntax
public static class AdvancedDicomClientConnectionFactory
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
Declaration
public static Task<IAdvancedDicomClientConnection> OpenConnectionAsync(AdvancedDicomClientConnectionRequest request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
AdvancedDicomClientConnectionRequest | request | The connection request that specifies the details of the connection that should be opened |
System.Threading.CancellationToken | cancellationToken | The token that will cancel the opening of the connection |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IAdvancedDicomClientConnection> | A new instance of IAdvancedDicomClientConnection |