List of Connext DDS C# examples

Connext DDS 6.1.0 introduces a brand new C# API for .NET 5. Check out the Getting Started Guide to learn how to install it and create your first application.

In addition to that, the RTI Community GitHub example repository contains multiple C# examples:

 

ExampleWhat it demonstrates
Group Coherent Presentation
  • How to use coherent sets to deliver data from different topics at the same time
  • How to configure QoS in XML and in code
  • How to wait for data on any reader within a Subscriber
  • How to look up which readers have unread data
  • How to read data without knowing its compile-time type with an AnyDataReader
  • How to monitor the SampleLost status with an event handler
  • How to use a waitset and a StatusCondition
Instance Statistics
  • How to look up the number of instances in each state using the DataWriterCacheStatus and DataReaderCacheStatus
  • How to dispose and unregister an instance
  • How to use a waitset and a StatusCondition
Asynchronous Publication
  • How to write data asynchronously
  • How to use a simple flow controller
  • How to read data from an infinite stream using an IAsyncEnumerable
Custom Flow Controller
  • How to write data asynchronously
  • How to configure a custom flow controller
  • How to configure a complex QoS policy
  • How to wait for data to be published and acknowledged
  • How to read data from an infinite stream using an IAsyncEnumerable
Multi Channel
  • How to send data to different multicast addressed based on a content filter
  • How to create a content-filtered topic
  • How to configure a complex QoS policy
  • How to monitor the DataAvailable event (also known as the on_data_available listener callback in other language bindings)
Partitions
  • How to use the Partition QoS policy
  • How to update a QoS policy after an entity has been created
  • How to look up the sample view state in the SampleInfo
  • How to read data from an infinite stream using an IAsyncEnumerable
QoS Printing
  • How to debug what QoS a DDS Entity is actually using
  • How to load QoS from XML and modify in code
  • How to print a QoS object in XML
  • How to print the difference between two QoS objects
Dynamic Data Publisher and Subscriber
  • How to create a DynamicType
  • How to load a DynamicType from XML
  • How to get a DynamicType generated from IDL
  • How to extend an existing DynamicType
  • How to write DynamicData
  • How to read DynamicData
  • How to read data from an infinite stream using an IAsyncEnumerable
Dynamic Data Sequences
  • How to create a DynamicType
  • How to create a DynamicData sample
  • How to populate and examine a DynamicData sample that contains sequences
Built-in Topics
  • How to use the built-in readers to receive discovery information
  • How to configure the UserData QoS policy to propagate data in the discovery phase
  • How to ignore a remote DomainParticipant, preventing all communication with it
  • How to use DataReader.Select() to read data with specific characteristics
 Network Capture
  • How to analyze or debug your DDS applications by capturing the network traffic.

 

 

 

Languages: