Table of Contents

Interface IEnvironment

Namespace
RabbitMQ.AMQP.Client
Assembly
RabbitMQ.AMQP.Client.dll

The IEnvironment is the main entry point to a node or a cluster of nodes.

The CreateConnectionAsync() method allows creating IConnection instances. An application is expected to maintain a single IEnvironment instance and to close that instance upon application exit.

IEnvironment instances are expected to be thread-safe.

public interface IEnvironment

Methods

CloseAsync()

Close this environment and its resources.

Task CloseAsync()

Returns

Task

Task

CreateConnectionAsync()

Create a new IConnection with the default connection settings.

Task<IConnection> CreateConnectionAsync()

Returns

Task<IConnection>

Task<TResult> instance.

CreateConnectionAsync(ConnectionSettings)

Create a new IConnection with the given connection settings.

Task<IConnection> CreateConnectionAsync(ConnectionSettings connectionSettings)

Parameters

connectionSettings ConnectionSettings

Returns

Task<IConnection>

Task<TResult> instance.