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