Show / Hide Table of Contents

    Class SilverbackBuilderIntegrationTestingExtensions

    Adds the AddIntegrationSpy and AddIntegrationSpyAndSubscriber methods to the SilverbackBuilder.

    Inheritance
    object
    SilverbackBuilderIntegrationTestingExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Configuration
    Assembly: Silverback.Integration.Testing.dll
    Syntax
    public static class SilverbackBuilderIntegrationTestingExtensions

    Methods

    AddIntegrationSpy(SilverbackBuilder, bool)

    Adds the IIntegrationSpy and its support services to the IServiceCollection.

    Declaration
    public static SilverbackBuilder AddIntegrationSpy(this SilverbackBuilder silverbackBuilder, bool attachSubscriber = false)
    Parameters
    Type Name Description
    SilverbackBuilder silverbackBuilder

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

    bool attachSubscriber

    Specifies whether a generic subscriber (InboundSpySubscriber must be used to monitor the inbound messages instead of a behavior (InboundSpyBrokerBehavior).

    Returns
    Type Description
    SilverbackBuilder

    The SilverbackBuilder so that additional calls can be chained.

    AddIntegrationSpyAndSubscriber(SilverbackBuilder)

    Adds the IIntegrationSpy and its support services to the IServiceCollection and uses a generic subscriber to monitor the incoming messages. This is the same as calling AddIntegrationSpy(SilverbackBuilder, bool) with the attachSubscriber parameter set to true.

    Declaration
    public static SilverbackBuilder AddIntegrationSpyAndSubscriber(this SilverbackBuilder silverbackBuilder)
    Parameters
    Type Name Description
    SilverbackBuilder silverbackBuilder

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

    Returns
    Type Description
    SilverbackBuilder

    The SilverbackBuilder so that additional calls can be chained.

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