Table of Contents

Class CompositeConnectionListener

Namespace
Steeltoe.Messaging.RabbitMQ.Connection
Assembly
Steeltoe.Messaging.RabbitMQ.dll
public class CompositeConnectionListener : IConnectionListener
Inheritance
CompositeConnectionListener
Implements
Inherited Members

Constructors

CompositeConnectionListener(ILogger)

public CompositeConnectionListener(ILogger logger = null)

Parameters

logger ILogger

Methods

AddListener(IConnectionListener)

public void AddListener(IConnectionListener connectionListener)

Parameters

connectionListener IConnectionListener

ClearListeners()

public void ClearListeners()

OnClose(IConnection)

Called when connection is closed

public void OnClose(IConnection connection)

Parameters

connection IConnection

the connection

OnCreate(IConnection)

Called when a new connection is established

public void OnCreate(IConnection connection)

Parameters

connection IConnection

the connection

OnShutDown(ShutdownEventArgs)

Called when connection is forced to close

public void OnShutDown(ShutdownEventArgs args)

Parameters

args ShutdownEventArgs

the event

RemoveListener(IConnectionListener)

public bool RemoveListener(IConnectionListener connectionListener)

Parameters

connectionListener IConnectionListener

Returns

bool

SetListeners(List<IConnectionListener>)

public void SetListeners(List<IConnectionListener> connectionListeners)

Parameters

connectionListeners List<IConnectionListener>