Table of Contents

Interface IDuplexClientTransport

Namespace
IceRpc.Transports
Assembly
IceRpc.dll

A class to create outgoing duplex connections.

public interface IDuplexClientTransport

Properties

Default

Gets the default duplex client transport.

public static IDuplexClientTransport Default { get; }

Property Value

IDuplexClientTransport

The default duplex client transport instance is the TcpClientTransport.

DefaultName

Gets the default transport name.

string DefaultName { get; }

Property Value

string

The transport accepts transport addresses that use this name as the TransportName. Some transports may accept additional names beyond this default.

Methods

CreateConnection(TransportAddress, DuplexConnectionOptions, SslClientAuthenticationOptions?)

Creates a new transport connection to the specified transport address.

IDuplexConnection CreateConnection(TransportAddress transportAddress, DuplexConnectionOptions options, SslClientAuthenticationOptions? clientAuthenticationOptions)

Parameters

transportAddress TransportAddress

The transport address to connect to.

options DuplexConnectionOptions

The duplex connection options.

clientAuthenticationOptions SslClientAuthenticationOptions

The SSL client authentication options.

Returns

IDuplexConnection

The new transport connection. This connection is not yet connected.

Remarks

The IceRPC core can call this method concurrently so it must be thread-safe.

IsSslRequired(string?)

Determines whether this transport requires SSL for the specified transport name.

bool IsSslRequired(string? transportName)

Parameters

transportName string

The transport name, or null which is equivalent to DefaultName.

Returns

bool

true if SSL is required; otherwise, false.

Exceptions

NotSupportedException

Thrown if transportName is not supported by this transport.