Table of Contents

Interface IConnection

Namespace
Steeltoe.Messaging.RabbitMQ.Connection
Assembly
Steeltoe.Messaging.RabbitMQ.dll
public interface IConnection : IDisposable
Inherited Members

Properties

Connection

Gets the underlying RabbitMQ connection

IConnection Connection { get; }

Property Value

IConnection

IsOpen

Gets a value indicating whether the connection is open

bool IsOpen { get; }

Property Value

bool

LocalPort

Gets the local port of the connection

int LocalPort { get; }

Property Value

int

Methods

AddBlockedListener(IBlockedListener)

Add a Blocked listener to the connection

void AddBlockedListener(IBlockedListener listener)

Parameters

listener IBlockedListener

the listener to add

Close()

Close the connection

void Close()

CreateChannel(bool)

Create a new channel, using an inernally allocated channel number

IModel CreateChannel(bool transactional = false)

Parameters

transactional bool

true if transaction support on channel

Returns

IModel

the new channel

RemoveBlockedListener(IBlockedListener)

Remove a Blocked listener from the connection

bool RemoveBlockedListener(IBlockedListener listener)

Parameters

listener IBlockedListener

the listener to remove

Returns

bool

true if successful