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
loggerILogger
Methods
AddListener(IConnectionListener)
public void AddListener(IConnectionListener connectionListener)
Parameters
connectionListenerIConnectionListener
ClearListeners()
public void ClearListeners()
OnClose(IConnection)
Called when connection is closed
public void OnClose(IConnection connection)
Parameters
connectionIConnectionthe connection
OnCreate(IConnection)
Called when a new connection is established
public void OnCreate(IConnection connection)
Parameters
connectionIConnectionthe connection
OnShutDown(ShutdownEventArgs)
Called when connection is forced to close
public void OnShutDown(ShutdownEventArgs args)
Parameters
argsShutdownEventArgsthe event
RemoveListener(IConnectionListener)
public bool RemoveListener(IConnectionListener connectionListener)
Parameters
connectionListenerIConnectionListener
Returns
SetListeners(List<IConnectionListener>)
public void SetListeners(List<IConnectionListener> connectionListeners)
Parameters
connectionListenersList<IConnectionListener>