mdevilliers / SignalR.RabbitMq

MessageBus implementation using RabbitMq as the backing store.
MIT License
89 stars 40 forks source link

IMessageBus initialization exception is cached by Lazy<T> #32

Closed dfschwabe closed 9 years ago

dfschwabe commented 9 years ago

Extension methods for dependency registration of IMessageBus access a single instance of RabbitMqMessageBus via Lazy. If the factory method throws an exception the first time a thread tries to access the Value property of the Lazy object, the same exception is thrown on every subsequent attempt.

This behavior is inconsistent with EasyNetQ.IAdvancedBus which will attempt to recover from temporary connectivity problems.

mdevilliers commented 9 years ago

Fixed with pull request #33