1
0
mirror of synced 2024-06-26 14:27:38 +00:00
Tapeti/Tapeti/Connection/IConnectionEventListener.cs
Mark van Renswoude 2e2a77a7ae Possible fix for #18 Two consumers from same connection after reconnect
- Consume calls still in the TapetiClient task queue while it is reconnecting would not be cancelled, but new calls were added as well after the reconnect
- Unrelated but useful: added LocalPort and Disconnect event to logging
2019-10-10 16:03:47 +02:00

26 lines
717 B
C#

namespace Tapeti.Connection
{
/// <summary>
/// Receives notifications on the state of the connection.
/// </summary>
public interface IConnectionEventListener
{
/// <summary>
/// Called when a connection to RabbitMQ has been established.
/// </summary>
void Connected(ConnectedEventArgs e);
/// <summary>
/// Called when the connection to RabbitMQ has been lost.
/// </summary>
void Reconnected(ConnectedEventArgs e);
/// <summary>
/// Called when the connection to RabbitMQ has been recovered after an unexpected disconnect.
/// </summary>
void Disconnected(DisconnectedEventArgs e);
}
}