Show / Hide Table of Contents

    Class BrokerOptionsBuilderAddMockedKafkaExtensions

    Adds the AddMockedKafka method to the IBrokerOptionsBuilder.

    Inheritance
    object
    BrokerOptionsBuilderAddMockedKafkaExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Microsoft.Extensions.DependencyInjection
    Assembly: Silverback.Integration.Kafka.Testing.dll
    Syntax
    public static class BrokerOptionsBuilderAddMockedKafkaExtensions

    Methods

    | Improve this doc View source

    AddMockedKafka(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 IServiceCollection to add the services to.

    Action<IMockedKafkaOptionsBuilder> optionsAction

    Configures the mock options.

    Returns
    Type Description
    IBrokerOptionsBuilder

    The IBrokerOptionsBuilder so that additional calls can be chained.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini