RawRabbit icon indicating copy to clipboard operation
RawRabbit copied to clipboard

[Question] Connection events in version rc-5

Open DevOnBike opened this issue 5 years ago • 0 comments

Hi,

we would like to know using RawRabbit Api when client is connected and disconnected from broker - this is useful because we could react to not being connected to broker by storing generated message (generating some message is very cpu intensive) in some persistent store like database.

From raw rabbit source code I can see that I could use IChannelFactory class with GetConnectionAsync method but I'm not sure it is the right way of doing this because this method is not idempotent, another words it changes state of internals insted only giving information about connection state.

Any clues about this case?

Regards, Maćko

DevOnBike avatar Nov 08 '19 10:11 DevOnBike