2018-12-19 19:50:56 +00:00
|
|
|
|
namespace Tapeti.Connection
|
2017-07-14 10:33:09 +00:00
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Receives notifications on the state of the connection.
|
|
|
|
|
/// </summary>
|
2017-07-14 10:33:09 +00:00
|
|
|
|
public interface IConnectionEventListener
|
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when a connection to RabbitMQ has been established.
|
|
|
|
|
/// </summary>
|
2019-10-10 14:03:12 +00:00
|
|
|
|
void Connected(ConnectedEventArgs e);
|
2019-08-13 18:30:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when the connection to RabbitMQ has been lost.
|
|
|
|
|
/// </summary>
|
2019-10-10 14:03:12 +00:00
|
|
|
|
void Reconnected(ConnectedEventArgs e);
|
2019-08-13 18:30:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called when the connection to RabbitMQ has been recovered after an unexpected disconnect.
|
|
|
|
|
/// </summary>
|
2019-02-13 11:00:34 +00:00
|
|
|
|
void Disconnected(DisconnectedEventArgs e);
|
2017-07-14 10:33:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|