Class ErrorPolicyBuilderMoveToMqttTopicExtensions
Adds the MoveToMqttTopic
method to the IErrorPolicyBuilder.
Inherited Members
Namespace: Silverback.Messaging.Configuration
Assembly: Silverback.Integration.MQTT.dll
Syntax
public static class ErrorPolicyBuilderMoveToMqttTopicExtensions
Methods
| Improve this doc View sourceMoveToMqttTopic(IErrorPolicyBuilder, Action<IMqttProducerEndpointBuilder>, Action<MoveMessageErrorPolicy>?)
Adds a MoveMessageErrorPolicy that moves the messages that fail to be processed to the configured endpoint.
Declaration
public static IErrorPolicyChainBuilder MoveToMqttTopic(this IErrorPolicyBuilder builder, Action<IMqttProducerEndpointBuilder> endpointBuilderAction, Action<MoveMessageErrorPolicy>? policyConfigurationAction = null)
Parameters
Type | Name | Description |
---|---|---|
IErrorPolicyBuilder | builder | The IErrorPolicyBuilder. |
Action<IMqttProducerEndpointBuilder> | endpointBuilderAction | An Action<T> that takes the IMqttProducerEndpointBuilder and configures it. |
Action<MoveMessageErrorPolicy> | policyConfigurationAction | The (optional) additional configuration. |
Returns
Type | Description |
---|---|
IErrorPolicyChainBuilder | The IErrorPolicyChainBuilder so that additional calls can be chained. |