Show / Hide Table of Contents

    Class SilverbackBuilderAddIntegrationSpyExtensions

    Adds the AddIntegrationSpy and AddIntegrationSpyAndSubscriber methods to the ISilverbackBuilder.

    Inheritance
    object
    SilverbackBuilderAddIntegrationSpyExtensions
    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.Testing.dll
    Syntax
    public static class SilverbackBuilderAddIntegrationSpyExtensions

    Methods

    | Improve this doc View source

    AddIntegrationSpy(ISilverbackBuilder, bool)

    Adds the IIntegrationSpy and its support services to the IServiceCollection.

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

    The ISilverbackBuilder 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
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddIntegrationSpyAndSubscriber(ISilverbackBuilder)

    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(ISilverbackBuilder, bool) with the attachSubscriber parameter set to true.

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

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

    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