Class BrokerOptionsBuilderAddMockedKafkaExtensions
Adds the AddMockedKafka
method to the IBrokerOptionsBuilder.
Inheritance
System.Object
BrokerOptionsBuilderAddMockedKafkaExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.Kafka.Testing.dll
Syntax
public static class BrokerOptionsBuilderAddMockedKafkaExtensions
Methods
| Improve this doc View sourceAddMockedKafka(IBrokerOptionsBuilder, Action<IMockedKafkaOptionsBuilder>)
Registers Apache Kafka as message broker but replaces the Kafka connectivity based on Confluent.Kafka with a mocked in-memory message broker that more or less replicates the Kafka behavior.
Declaration
public static IBrokerOptionsBuilder AddMockedKafka(this IBrokerOptionsBuilder brokerOptionsBuilder, Action<IMockedKafkaOptionsBuilder> optionsAction = null)
Parameters
Type | Name | Description |
---|---|---|
IBrokerOptionsBuilder | brokerOptionsBuilder | The IBrokerOptionsBuilder that references the Microsoft.Extensions.DependencyInjection.IServiceCollection to add the services to. |
System.Action<IMockedKafkaOptionsBuilder> | optionsAction | Configures the mock options. |
Returns
Type | Description |
---|---|
IBrokerOptionsBuilder | The IBrokerOptionsBuilder so that additional calls can be chained. |