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
topicstringThe target topic.
Properties
Topic
Gets the target topic.
public string Topic { get; }
Property Value
Methods
GetEndpointCore(MqttProducerEndpointConfiguration)
Gets the static destination endpoint.
protected override MqttProducerEndpoint GetEndpointCore(MqttProducerEndpointConfiguration configuration)
Parameters
configurationMqttProducerEndpointConfigurationThe producer endpoint configuration.
Returns
Remarks
This method will be called once and the result will be cached.