RTI Connext C# API Version 7.3.0
Rti.Dds.Core.Policy.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()

Rti.Dds.Core.Policy.TransportSelection.TransportSelection ( IEnumerable< string >  enabledTransports)

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

Member Function Documentation

◆ With()

TransportSelection Rti.Dds.Core.Policy.TransportSelection.With ( Action< TransportSelectionBuilder build)
inline

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

◆ GetHashCode()

override int Rti.Dds.Core.Policy.TransportSelection.GetHashCode ( )
inline

Gets the hash code

◆ Equals() [1/2]

override bool Rti.Dds.Core.Policy.TransportSelection.Equals ( object  other)

Compares for equality

◆ Equals() [2/2]

bool Rti.Dds.Core.Policy.TransportSelection.Equals ( TransportSelection  other)
inline

Compares for equality

Property Documentation

◆ EnabledTransports

ImmutableList<string> Rti.Dds.Core.Policy.TransportSelection.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

◆ Default

TransportSelection Rti.Dds.Core.Policy.TransportSelection.Default
staticget

Singleton containing the default value of a TransportSelection