Class SilverbackBuilderAddIntegrationSpyExtensions
Adds the AddIntegrationSpy
and AddIntegrationSpyAndSubscriber
methods to the
ISilverbackBuilder.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.Testing.dll
Syntax
public static class SilverbackBuilderAddIntegrationSpyExtensions
Methods
| Improve this doc View sourceAddIntegrationSpy(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. |
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. |