Class MqttStaticProducerEndpointResolver
Statically resolves to the same target topic for every message being produced.
Inheritance
MqttStaticProducerEndpointResolver
Implements
Inherited Members
Namespace: Silverback.Messaging.Producing.EndpointResolvers
Assembly: Silverback.Integration.MQTT.dll
Syntax
public sealed class MqttStaticProducerEndpointResolver : StaticProducerEndpointResolver<MqttProducerEndpoint, MqttProducerEndpointConfiguration>, IStaticProducerEndpointResolver<MqttProducerEndpoint>, IStaticProducerEndpointResolver, IProducerEndpointResolver<MqttProducerEndpoint>, IProducerEndpointResolver, IEquatable<StaticProducerEndpointResolver<MqttProducerEndpoint, MqttProducerEndpointConfiguration>>
Constructors
MqttStaticProducerEndpointResolver(string)
Initializes a new instance of the MqttStaticProducerEndpointResolver class.
Declaration
public MqttStaticProducerEndpointResolver(string topic)
Parameters
| Type | Name | Description |
|---|---|---|
| string | topic | The target topic. |
Properties
Topic
Gets the target topic.
Declaration
public string Topic { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetEndpointCore(MqttProducerEndpointConfiguration)
Gets the static destination endpoint.
Declaration
protected override MqttProducerEndpoint GetEndpointCore(MqttProducerEndpointConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| MqttProducerEndpointConfiguration | configuration | The producer endpoint configuration. |
Returns
| Type | Description |
|---|---|
| MqttProducerEndpoint | The ProducerEndpoint. |
Overrides
Remarks
This method will be called once and the result will be cached.