Show / Hide Table of Contents

    Class SilverbackBuilderUseMockedKafkaExtensions

    Adds the UseMockedKafka method to the ISilverbackBuilder.

    Inheritance
    object
    SilverbackBuilderUseMockedKafkaExtensions
    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 SilverbackBuilderUseMockedKafkaExtensions

    Methods

    | Improve this doc View source

    UseMockedKafka(ISilverbackBuilder, Action<IMockedKafkaOptionsBuilder>?)

    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 ISilverbackBuilder UseMockedKafka(this ISilverbackBuilder builder, Action<IMockedKafkaOptionsBuilder>? optionsAction = null)
    Parameters
    Type Name Description
    ISilverbackBuilder builder

    The ISilverbackBuilder.

    Action<IMockedKafkaOptionsBuilder> optionsAction

    Configures the mock options.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

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