RTI Connext C# API  6.1.0
TransportSelection Class Reference

Specifies the transports that a Publication.DataWriter<T> or a Subscription.DataReader<T> may use to send or receive data. More...

Inherits IEquatable< TransportSelection >.

Public Member Functions

 TransportSelection (IEnumerable< string > enabledTransports)
 Creates a new TransportSelection object using a list of its enabled transports More...
 
TransportSelection With (Action< TransportSelectionBuilder > build)
 Creates a new TransportSelection with a set of changes specified in an Action More...
 
override int GetHashCode ()
 Gets the hash code More...
 
override bool Equals (object other)
 Compares for equality More...
 
bool Equals (TransportSelection other)
 Compares for equality More...
 

Properties

ImmutableList< string > EnabledTransports [get]
 A sequence of transport aliases that specifies the transport instances available for use by the entity. More...
 
static TransportSelection Default [get]
 Singleton containing the default value of a TransportSelection More...
 

Detailed Description

Specifies the transports that a Publication.DataWriter<T> or a Subscription.DataReader<T> may use to send or receive data.

The full documentation is available in the C API: DDS_TransportSelectionQosPolicy::enabled_transports

Constructor & Destructor Documentation

◆ TransportSelection()

TransportSelection ( IEnumerable< string >  enabledTransports)

Creates a new TransportSelection object using a list of its enabled transports

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Equals ( TransportSelection  other)

Compares for equality

◆ GetHashCode()

override int GetHashCode ( )

Gets the hash code

◆ With()

TransportSelection With ( Action< TransportSelectionBuilder build)

Creates a new TransportSelection with a set of changes specified in an Action

Parameters
buildAn Action (typically a lambda function) that receives a modifiable object with the current values of this TransportSelection.
Returns
A new TransportSelection with the changes applied by the Action

Property Documentation

◆ Default

TransportSelection Default
staticget

Singleton containing the default value of a TransportSelection

◆ EnabledTransports

ImmutableList<string> EnabledTransports
get

A sequence of transport aliases that specifies the transport instances available for use by the entity.

The full documentation is available in the C API: DDS_TransportSelectionQosPolicy::enabled_transports