Show / Hide Table of Contents

    Class EndpointsConfigurationBuilderAddInboundExtensions

    Adds the AddInbound method to the IEndpointsConfigurationBuilder.

    Inheritance
    object
    EndpointsConfigurationBuilderAddInboundExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Configuration
    Assembly: Silverback.Integration.dll
    Syntax
    public static class EndpointsConfigurationBuilderAddInboundExtensions
    Remarks

    Multiple calls to this methods will cause multiple consumers to be instantiated, which could mean multiple connections being issues and more resources being used (depending on the actual message broker implementation). The consumer endpoint might allow to define multiple endpoints at once, to efficiently instantiate a single consumer for all of them.

    Methods

    | Improve this doc View source

    AddInbound(IEndpointsConfigurationBuilder, IConsumerEndpoint, int)

    Adds an inbound endpoint and instantiates a consumer.

    Declaration
    public static IEndpointsConfigurationBuilder AddInbound(this IEndpointsConfigurationBuilder endpointsConfigurationBuilder, IConsumerEndpoint endpoint, int consumersCount = 1)
    Parameters
    Type Name Description
    IEndpointsConfigurationBuilder endpointsConfigurationBuilder

    The IEndpointsConfigurationBuilder.

    IConsumerEndpoint endpoint

    The endpoint (topic).

    int consumersCount

    The number of consumers to be instantiated. The default is 1.

    Returns
    Type Description
    IEndpointsConfigurationBuilder

    The IEndpointsConfigurationBuilder so that additional calls can be chained.

    Remarks

    Multiple calls to this methods will cause multiple consumers to be instantiated, which could mean multiple connections being issues and more resources being used (depending on the actual message broker implementation). The consumer endpoint might allow to define multiple endpoints at once, to efficiently instantiate a single consumer for all of them.

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