Class ServiceCollectionAddSilverbackExtensions
Adds the AddSilverback method to the IServiceCollection.
Inherited Members
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Silverback.Core.dll
Syntax
public static class ServiceCollectionAddSilverbackExtensions
Methods
| Improve this doc View sourceAddSilverback(IServiceCollection)
Adds the minimum essential Silverback services to the IServiceCollection. Additional services including broker support, inbound/outbound connectors and database bindings must be added separately using the returned ISilverbackBuilder.
Declaration
public static ISilverbackBuilder AddSilverback(this IServiceCollection services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The IServiceCollection to add the services to. |
Returns
| Type | Description |
|---|---|
| ISilverbackBuilder | The ISilverbackBuilder to add the services necessary to enable the Silverback features. |