Class SilverbackBuilderAddIntegrationSpyExtensions
Adds the AddIntegrationSpy
and AddIntegrationSpyAndSubscriber
methods to the
ISilverbackBuilder.
Inheritance
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Integration.Testing.dll
Syntax
public static class SilverbackBuilderAddIntegrationSpyExtensions
Methods
| Improve this doc View sourceAddIntegrationSpy(ISilverbackBuilder, Boolean)
Adds the IIntegrationSpy and its support services to the Microsoft.Extensions.DependencyInjection.IServiceCollection.
Declaration
public static ISilverbackBuilder AddIntegrationSpy(this ISilverbackBuilder silverbackBuilder, bool attachSubscriber = false)
Parameters
Type | Name | Description |
---|---|---|
ISilverbackBuilder | silverbackBuilder | The ISilverbackBuilder that references the Microsoft.Extensions.DependencyInjection.IServiceCollection to add the services to. |
System.Boolean | 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
Microsoft.Extensions.DependencyInjection.IServiceCollection and uses a generic
subscriber to monitor the incoming messages. This is the same as calling AddIntegrationSpy(ISilverbackBuilder, Boolean)
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 Microsoft.Extensions.DependencyInjection.IServiceCollection to add the services to. |
Returns
Type | Description |
---|---|
ISilverbackBuilder | The ISilverbackBuilder so that additional calls can be chained. |