Show / Hide Table of Contents

    Class BrokerOptionsBuilderMemoryExtensions

    Adds the Silverback.Storage.Memory specific methods to the BrokerOptionsBuilder.

    Inheritance
    object
    BrokerOptionsBuilderMemoryExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.Configuration
    Assembly: Silverback.Storage.Memory.dll
    Syntax
    public static class BrokerOptionsBuilderMemoryExtensions

    Methods

    AddInMemoryKafkaOffsetStore(BrokerOptionsBuilder)

    Adds the in-memory offset store.

    Declaration
    public static BrokerOptionsBuilder AddInMemoryKafkaOffsetStore(this BrokerOptionsBuilder builder)
    Parameters
    Type Name Description
    BrokerOptionsBuilder builder

    The BrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    BrokerOptionsBuilder

    The BrokerOptionsBuilder so that additional calls can be chained.

    AddInMemoryOutbox(BrokerOptionsBuilder)

    Adds the in-memory outbox.

    Declaration
    public static BrokerOptionsBuilder AddInMemoryOutbox(this BrokerOptionsBuilder builder)
    Parameters
    Type Name Description
    BrokerOptionsBuilder builder

    The BrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    BrokerOptionsBuilder

    The BrokerOptionsBuilder so that additional calls can be chained.

    UseInMemoryKafkaOffsetStore(BrokerOptionsBuilder)

    Replaces all offset stores with the in-memory version, better suitable for testing.

    Declaration
    public static BrokerOptionsBuilder UseInMemoryKafkaOffsetStore(this BrokerOptionsBuilder builder)
    Parameters
    Type Name Description
    BrokerOptionsBuilder builder

    The BrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    BrokerOptionsBuilder

    The BrokerOptionsBuilder so that additional calls can be chained.

    UseInMemoryOutbox(BrokerOptionsBuilder)

    Replaces all outboxes with the in-memory version, better suitable for testing.

    Declaration
    public static BrokerOptionsBuilder UseInMemoryOutbox(this BrokerOptionsBuilder builder)
    Parameters
    Type Name Description
    BrokerOptionsBuilder builder

    The BrokerOptionsBuilder that references the IServiceCollection to add the services to.

    Returns
    Type Description
    BrokerOptionsBuilder

    The BrokerOptionsBuilder so that additional calls can be chained.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini