Class SilverbackBuilderIntegrationTestingExtensions
- Namespace
- Silverback.Configuration
- Assembly
- Silverback.Integration.Testing.dll
Adds the AddIntegrationSpy and AddIntegrationSpyAndSubscriber methods to the SilverbackBuilder.
public static class SilverbackBuilderIntegrationTestingExtensions
- Inheritance
-
SilverbackBuilderIntegrationTestingExtensions
- Inherited Members
Methods
AddIntegrationSpy(SilverbackBuilder, bool)
Adds the IIntegrationSpy and its support services to the IServiceCollection.
public static SilverbackBuilder AddIntegrationSpy(this SilverbackBuilder silverbackBuilder, bool attachSubscriber = false)
Parameters
silverbackBuilderSilverbackBuilderThe SilverbackBuilder that references the IServiceCollection to add the services to.
attachSubscriberboolSpecifies whether a generic subscriber (InboundSpySubscriber must be used to monitor the inbound messages instead of a behavior (InboundSpyBrokerBehavior).
Returns
- 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.
public static SilverbackBuilder AddIntegrationSpyAndSubscriber(this SilverbackBuilder silverbackBuilder)
Parameters
silverbackBuilderSilverbackBuilderThe SilverbackBuilder that references the IServiceCollection to add the services to.
Returns
- SilverbackBuilder
The SilverbackBuilder so that additional calls can be chained.