RTI Connext C# API  7.0.0
SimpleReplierBuilder< TRequest, TReply > Class Template Reference

A builder that allows configuring and creating a new SimpleReplier. It can be retrieved via participant.BuildSimpleReplier<TRequest, TReply>() (an extension method defined in DomainParticipantRequestReplyExtensions). More...

Public Member Functions

SimpleReplierBuilder< TRequest, TReply > WithTopicNames (string requestTopicName, string replyTopicName)
 Sets RequestTopicName and ReplyTopicName. More...
 
SimpleReplierBuilder< TRequest, TReply > WithServiceName (string serviceName)
 Sets ServiceName. More...
 
SimpleReplierBuilder< TRequest, TReply > WithRequestHandler (Func< TRequest, TReply > requestHandler)
 Sets RequestHandler. More...
 
SimpleReplierBuilder< TRequest, TReply > WithPublisher (Publisher publisher)
 Sets Publisher. More...
 
SimpleReplierBuilder< TRequest, TReply > WithSubscriber (Subscriber subscriber)
 Sets Subscriber. More...
 
SimpleReplierBuilder< TRequest, TReply > WithDataWriterQos (DataWriterQos dataWriterQos)
 Sets DataWriterQos. More...
 
SimpleReplierBuilder< TRequest, TReply > WithDataReaderQos (DataReaderQos dataReaderQos)
 Sets DataReaderQos. More...
 
SimpleReplierBuilder< TRequest, TReply > WithRequestDynamicType (DynamicType requestDynamicType)
 Sets RequestDynamicType. More...
 
SimpleReplierBuilder< TRequest, TReply > WithReplyDynamicType (DynamicType replyDynamicType)
 Sets ReplyDynamicType. More...
 
SimpleReplier< TRequest, TReply > Create ()
 Creates a new SimpleReplier object using the current properties of the SimpleReplierBuilder<TRequest, TReply> instance. More...
 

Properties

DomainParticipant Participant [get]
 The DomainParticipant used by the Replier. More...
 
string RequestTopicName [get, set]
 The name of the request topic a Requester and a Replier use to match. More...
 
string ReplyTopicName [get, set]
 The name of the reply topic a Requester and a Replier use to match. More...
 
string ServiceName [get, set]
 The service name that a Requester and a Replier use to match. More...
 
Func< TRequest, TReply > RequestHandler [get, set]
 The handler to produce a reply for every incoming request. More...
 
Publisher Publisher [get, set]
 The publisher used by the Replier. More...
 
Subscriber Subscriber [get, set]
 The subscriber used by the Replier. More...
 
DataWriterQos DataWriterQos [get, set]
 The QoS used by the Replier's underlying DataWriter<TReply>. More...
 
DataReaderQos DataReaderQos [get, set]
 The QoS used by the Replier's underlying DataReader<TRequest>. More...
 
DynamicType RequestDynamicType [get, set]
 The request type, when Rti.Types.Dynamic.DynamicData is used. More...
 
DynamicType ReplyDynamicType [get, set]
 The reply type, when Rti.Types.Dynamic.DynamicData is used. More...
 

Detailed Description

A builder that allows configuring and creating a new SimpleReplier. It can be retrieved via participant.BuildSimpleReplier<TRequest, TReply>() (an extension method defined in DomainParticipantRequestReplyExtensions).

The builder's configuration will be used to create the resulting SimpleReplier. At its simplest form, a SimpleReplier requires only the use of WithServiceName and WithRequestHandler to set the corresponding properties for creation to be successful. Several other "With" methods provide further configuration options.

Member Function Documentation

◆ Create()

SimpleReplier<TRequest, TReply> Create ( )

Creates a new SimpleReplier object using the current properties of the SimpleReplierBuilder<TRequest, TReply> instance.

Returns
The new SimpleReplier object.

◆ WithDataReaderQos()

SimpleReplierBuilder<TRequest, TReply> WithDataReaderQos ( DataReaderQos  dataReaderQos)

Sets DataReaderQos.

Parameters
dataReaderQosThe new DataReaderQos to be set.
Returns
The same builder.

◆ WithDataWriterQos()

SimpleReplierBuilder<TRequest, TReply> WithDataWriterQos ( DataWriterQos  dataWriterQos)

Sets DataWriterQos.

Parameters
dataWriterQosThe new DataWriterQos to be set.
Returns
The same builder.

◆ WithPublisher()

SimpleReplierBuilder<TRequest, TReply> WithPublisher ( Publisher  publisher)

Sets Publisher.

Parameters
publisherThe new Publisher to be set.
Returns
The same builder.

◆ WithReplyDynamicType()

SimpleReplierBuilder<TRequest, TReply> WithReplyDynamicType ( DynamicType  replyDynamicType)

Sets ReplyDynamicType.

Parameters
replyDynamicTypeThe new ReplyDynamicType to be set.
Returns
The same builder.

◆ WithRequestDynamicType()

SimpleReplierBuilder<TRequest, TReply> WithRequestDynamicType ( DynamicType  requestDynamicType)

Sets RequestDynamicType.

Parameters
requestDynamicTypeThe new RequestDynamicType to be set.
Returns
The same builder.

◆ WithRequestHandler()

SimpleReplierBuilder<TRequest, TReply> WithRequestHandler ( Func< TRequest, TReply >  requestHandler)

Sets RequestHandler.

Parameters
requestHandlerThe new RequestHandler to be set.

◆ WithServiceName()

SimpleReplierBuilder<TRequest, TReply> WithServiceName ( string  serviceName)

Sets ServiceName.

Parameters
serviceNameThe new ServiceName to be set.
Returns
The same builder.

Either the topic names or ServiceName have to be set in order to call Create().

◆ WithSubscriber()

SimpleReplierBuilder<TRequest, TReply> WithSubscriber ( Subscriber  subscriber)

Sets Subscriber.

Parameters
subscriberThe new Subscriber to be set.
Returns
The same builder.

◆ WithTopicNames()

SimpleReplierBuilder<TRequest, TReply> WithTopicNames ( string  requestTopicName,
string  replyTopicName 
)

Sets RequestTopicName and ReplyTopicName.

Parameters
requestTopicNameThe new RequestTopicName to be set.
replyTopicNameThe new ReplyTopicName to be set.
Returns
The same builder.

Either the topic names or ServiceName have to be set in order to call Create().

Property Documentation

◆ DataReaderQos

The QoS used by the Replier's underlying DataReader<TRequest>.

◆ DataWriterQos

The QoS used by the Replier's underlying DataWriter<TReply>.

◆ Participant

DomainParticipant Participant
get

The DomainParticipant used by the Replier.

◆ Publisher

The publisher used by the Replier.

◆ ReplyDynamicType

DynamicType ReplyDynamicType
getset

The reply type, when Rti.Types.Dynamic.DynamicData is used.

This is required when the Replier's TReply is Rti.Types.Dynamic.DynamicData.

◆ ReplyTopicName

string ReplyTopicName
getset

The name of the reply topic a Requester and a Replier use to match.

Either both topic names or ServiceName have to be set.

◆ RequestDynamicType

DynamicType RequestDynamicType
getset

The request type, when Rti.Types.Dynamic.DynamicData is used.

This is required when the Replier's TRequest is Rti.Types.Dynamic.DynamicData.

◆ RequestHandler

Func<TRequest, TReply> RequestHandler
getset

The handler to produce a reply for every incoming request.

◆ RequestTopicName

string RequestTopicName
getset

The name of the request topic a Requester and a Replier use to match.

Either both topic names or ServiceName have to be set.

◆ ServiceName

string ServiceName
getset

The service name that a Requester and a Replier use to match.

Either both topic names or ServiceName have to be set.

◆ Subscriber

The subscriber used by the Replier.