Class CompositeConnectionListener
- Namespace
- Steeltoe.Messaging.RabbitMQ.Connection
- Assembly
- Steeltoe.Messaging.RabbitMQ.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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
IConnectionthe connection
OnCreate(IConnection)
Called when a new connection is established
public void OnCreate(IConnection connection)
Parameters
connection
IConnectionthe connection
OnShutDown(ShutdownEventArgs)
Called when connection is forced to close
public void OnShutDown(ShutdownEventArgs args)
Parameters
args
ShutdownEventArgsthe event
RemoveListener(IConnectionListener)
public bool RemoveListener(IConnectionListener connectionListener)
Parameters
connectionListener
IConnectionListener
Returns
SetListeners(List<IConnectionListener>)
public void SetListeners(List<IConnectionListener> connectionListeners)
Parameters
connectionListeners
List<IConnectionListener>