Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- connection = connection = factory.CreateConnection();
- channel = connection.CreateModel();
- .......
- connection.ConnectionShutdown += Connection_ConnectionShutdown;
- void Connection_ConnectionShutdown(IConnection connection, ShutdownEventArgs reason)
- {
- Console.WriteLine("connection_ConnectionShutdown " + reason.ToString());
- Reconnect_client();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement