Show / Hide Table of Contents

    Class SilverbackBuilderAddBrokerCallbackHandlerExtensions

    Adds the AddBrokerCallbackHandler methods to the ISilverbackBuilder.

    Inheritance
    object
    SilverbackBuilderAddBrokerCallbackHandlerExtensions
    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 SilverbackBuilderAddBrokerCallbackHandlerExtensions

    Methods

    | Improve this doc View source

    AddScopedBrokerCallbackHandler(ISilverbackBuilder, Func<IServiceProvider, IBrokerCallback>)

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

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

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

    Func<IServiceProvider, IBrokerCallback> 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

    AddScopedBrokerCallbackHandler(ISilverbackBuilder, Type)

    Adds a scoped callback of the type specified in handlerType to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddScopedBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Type handlerType)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    Type handlerType

    The type of the handler 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

    AddScopedBrokerCallbackHandler<THandler>(ISilverbackBuilder)

    Adds a scoped callback of the type specified in THandler to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddScopedBrokerCallbackHandler<THandler>(this ISilverbackBuilder silverbackBuilder) where THandler : class, IBrokerCallback
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    Type Parameters
    Name Description
    THandler

    The type of the handler to add.

    | Improve this doc View source

    AddSingletonBrokerCallbackHandler(ISilverbackBuilder, IBrokerCallback)

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

    Declaration
    public static ISilverbackBuilder AddSingletonBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, IBrokerCallback implementationInstance)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    IBrokerCallback implementationInstance

    The instance of the service.

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    | Improve this doc View source

    AddSingletonBrokerCallbackHandler(ISilverbackBuilder, Func<IServiceProvider, IBrokerCallback>)

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

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

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

    Func<IServiceProvider, IBrokerCallback> 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

    AddSingletonBrokerCallbackHandler(ISilverbackBuilder, Type)

    Adds a singleton callback of the type specified in handlerType to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddSingletonBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Type handlerType)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    Type handlerType

    The type of the handler 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

    AddSingletonBrokerCallbackHandler<THandler>(ISilverbackBuilder)

    Adds a singleton callback of the type specified in THandler to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddSingletonBrokerCallbackHandler<THandler>(this ISilverbackBuilder silverbackBuilder) where THandler : class, IBrokerCallback
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    Type Parameters
    Name Description
    THandler

    The type of the handler to add.

    | Improve this doc View source

    AddTransientBrokerCallbackHandler(ISilverbackBuilder, Func<IServiceProvider, IBrokerCallback>)

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

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

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

    Func<IServiceProvider, IBrokerCallback> 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

    AddTransientBrokerCallbackHandler(ISilverbackBuilder, Type)

    Adds a transient callback of the type specified in handlerType to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddTransientBrokerCallbackHandler(this ISilverbackBuilder silverbackBuilder, Type handlerType)
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    Type handlerType

    The type of the handler 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

    AddTransientBrokerCallbackHandler<THandler>(ISilverbackBuilder)

    Adds a transient callback of the type specified in THandler to the IServiceCollection.

    Declaration
    public static ISilverbackBuilder AddTransientBrokerCallbackHandler<THandler>(this ISilverbackBuilder silverbackBuilder) where THandler : class, IBrokerCallback
    Parameters
    Type Name Description
    ISilverbackBuilder silverbackBuilder

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

    Returns
    Type Description
    ISilverbackBuilder

    The ISilverbackBuilder so that additional calls can be chained.

    Type Parameters
    Name Description
    THandler

    The type of the handler to add.

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