Show / Hide Table of Contents

    Class RabbitConnectionFactory

    The factory that creates and stores the connections to Rabbit in order to create a single connection per each RabbitConnectionConfig.

    Inheritance
    object
    RabbitConnectionFactory
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Broker.Rabbit
    Assembly: Silverback.Integration.RabbitMQ.dll
    Syntax
    public sealed class RabbitConnectionFactory : IDisposable

    Methods

    | Improve this doc View source

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()
    | Improve this doc View source

    GetChannel(RabbitConsumerEndpoint)

    Returns a channel to consume from the specified endpoint.

    Declaration
    public (IModel Channel, string QueueName) GetChannel(RabbitConsumerEndpoint endpoint)
    Parameters
    Type Name Description
    RabbitConsumerEndpoint endpoint

    The endpoint to be consumed from.

    Returns
    Type Description
    (IModel Channel, string QueueName)

    The RabbitMQ.Client.IModel representing the channel.

    | Improve this doc View source

    GetChannel(RabbitProducerEndpoint, string)

    Returns a channel to produce to the specified endpoint.

    Declaration
    public IModel GetChannel(RabbitProducerEndpoint endpoint, string actualEndpointName)
    Parameters
    Type Name Description
    RabbitProducerEndpoint endpoint

    The endpoint to be produced to.

    string actualEndpointName

    The actual target endpoint name.

    Returns
    Type Description
    IModel

    The RabbitMQ.Client.IModel representing the channel.

    Implements

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