Show / Hide Table of Contents

    Class SilverbackBuilderAddOutboundRouterExtensions

    Adds the AddSingletonOutboundRouter method to the ISilverbackBuilder.

    Inheritance
    object
    SilverbackBuilderAddOutboundRouterExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Microsoft.Extensions.DependencyInjection
    Assembly: Silverback.Integration.dll
    Syntax
    public static class SilverbackBuilderAddOutboundRouterExtensions

    Methods

    | Improve this doc View source

    AddScopedOutboundRouter(ISilverbackBuilder, Func<IServiceProvider, IOutboundRouter>)

    Adds a scoped outbound router with a factory specified in implementationFactory to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddScopedOutboundRouter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IOutboundRouter> implementationFactory)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    Func<IServiceProvider, IOutboundRouter> implementationFactory

    The factory that creates the service.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddScopedOutboundRouter(ISilverbackBuilder, Type)

    Adds a scoped outbound router of the type specified in routerType to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddScopedOutboundRouter(this ISilverbackBuilder silverbackBuilder, Type routerType)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    Type routerType

    The type of the outbound router to register and the implementation to use.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddScopedOutboundRouter<TRouter>(ISilverbackBuilder)

    Adds a scoped outbound router of the type specified in TRouter to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddScopedOutboundRouter<TRouter>(this ISilverbackBuilder silverbackBuilder) where TRouter : class, IOutboundRouter
    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.

    Type Parameters
    Name Description
    TRouter

    The type of the outbound router to add.

    | Improve this doc View source

    AddSingletonOutboundRouter(ISilverbackBuilder, IOutboundRouter)

    Adds a singleton outbound router with an instance specified in implementationInstance to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddSingletonOutboundRouter(this ISilverbackBuilder silverbackBuilder, IOutboundRouter implementationInstance)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    IOutboundRouter implementationInstance

    The instance of the service.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddSingletonOutboundRouter(ISilverbackBuilder, Func<IServiceProvider, IOutboundRouter>)

    Adds a singleton outbound router with a factory specified in implementationFactory to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddSingletonOutboundRouter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IOutboundRouter> implementationFactory)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    Func<IServiceProvider, IOutboundRouter> implementationFactory

    The factory that creates the service.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddSingletonOutboundRouter(ISilverbackBuilder, Type)

    Adds a singleton outbound router of the type specified in routerType to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddSingletonOutboundRouter(this ISilverbackBuilder silverbackBuilder, Type routerType)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    Type routerType

    The type of the outbound router to register and the implementation to use.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddSingletonOutboundRouter<TRouter>(ISilverbackBuilder)

    Adds a singleton outbound router of the type specified in TRouter to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddSingletonOutboundRouter<TRouter>(this ISilverbackBuilder silverbackBuilder) where TRouter : class, IOutboundRouter
    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.

    Type Parameters
    Name Description
    TRouter

    The type of the outbound router to add.

    | Improve this doc View source

    AddTransientOutboundRouter(ISilverbackBuilder, Func<IServiceProvider, IOutboundRouter>)

    Adds a transient outbound router with a factory specified in implementationFactory to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddTransientOutboundRouter(this ISilverbackBuilder silverbackBuilder, Func<IServiceProvider, IOutboundRouter> implementationFactory)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    Func<IServiceProvider, IOutboundRouter> implementationFactory

    The factory that creates the service.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddTransientOutboundRouter(ISilverbackBuilder, Type)

    Adds a transient outbound router of the type specified in routerType to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddTransientOutboundRouter(this ISilverbackBuilder silverbackBuilder, Type routerType)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

    The ISilverbackBuilder that references the IServiceCollection to add the services to.

    Type routerType

    The type of the outbound router to register and the implementation to use.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddTransientOutboundRouter<TRouter>(ISilverbackBuilder)

    Adds a transient outbound router of the type specified in TRouter to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddTransientOutboundRouter<TRouter>(this ISilverbackBuilder silverbackBuilder) where TRouter : class, IOutboundRouter
    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.

    Type Parameters
    Name Description
    TRouter

    The type of the outbound router to add.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini