Class ServiceCollectionExtensions
Adds the AddSilverback(IServiceCollection) and ConfigureSilverback(IServiceCollection) methods to the IServiceCollection.
Inherited Members
Namespace: Silverback.Configuration
Assembly: Silverback.Core.dll
Syntax
public static class ServiceCollectionExtensions
Methods
AddSilverback(IServiceCollection)
Adds the minimum essential Silverback services to the IServiceCollection. Additional services including message broker support and database bindings must be added separately using the returned SilverbackBuilder.
Declaration
public static SilverbackBuilder AddSilverback(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| SilverbackBuilder | The SilverbackBuilder to add the services necessary to enable the Silverback features. |
ConfigureSilverback(IServiceCollection)
Returns an SilverbackBuilder instance that can be used to configure the additional services.
Declaration
public static SilverbackBuilder ConfigureSilverback(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| SilverbackBuilder | The SilverbackBuilder to add the services necessary to enable the Silverback features. |