Show / Hide Table of Contents

    Class ServiceCollectionUseMockedKafkaExtensions

    Adds the UseMockedKafka method to the IServiceCollection.

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

    Methods

    | Improve this doc View source

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

    The IServiceCollection to add the service to.

    Action<IMockedKafkaOptionsBuilder> optionsAction

    Additional options (such as topics and partitions settings).

    Returns
    Type Description
    IServiceCollection

    The IServiceCollection so that additional calls can be chained.

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