Table of Contents

Class MqttStaticProducerEndpointResolver

Namespace
Silverback.Messaging.Producing.EndpointResolvers
Assembly
Silverback.Integration.MQTT.dll

Statically resolves to the same target topic for every message being produced.

public sealed class MqttStaticProducerEndpointResolver : StaticProducerEndpointResolver<MqttProducerEndpoint, MqttProducerEndpointConfiguration>, IStaticProducerEndpointResolver<MqttProducerEndpoint>, IStaticProducerEndpointResolver, IProducerEndpointResolver<MqttProducerEndpoint>, IProducerEndpointResolver, IEquatable<StaticProducerEndpointResolver<MqttProducerEndpoint, MqttProducerEndpointConfiguration>>
Inheritance
MqttStaticProducerEndpointResolver
Implements
Inherited Members

Constructors

MqttStaticProducerEndpointResolver(string)

Initializes a new instance of the MqttStaticProducerEndpointResolver class.

public MqttStaticProducerEndpointResolver(string topic)

Parameters

topic string

The target topic.

Properties

Topic

Gets the target topic.

public string Topic { get; }

Property Value

string

Methods

GetEndpointCore(MqttProducerEndpointConfiguration)

Gets the static destination endpoint.

protected override MqttProducerEndpoint GetEndpointCore(MqttProducerEndpointConfiguration configuration)

Parameters

configuration MqttProducerEndpointConfiguration

The producer endpoint configuration.

Returns

MqttProducerEndpoint

The ProducerEndpoint.

Remarks

This method will be called once and the result will be cached.