Show / Hide Table of Contents

    Class ServiceCollectionExtensions

    Adds the AddSilverback(IServiceCollection) and ConfigureSilverback(IServiceCollection) methods to the IServiceCollection.

    Inheritance
    object
    ServiceCollectionExtensions
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini