Remiworks / EventBusFramework

Wrapper for RabbitMQ. This includes an attribute library for handling incoming events and commands.
GNU General Public License v3.0
1 stars 2 forks source link

Retry connecting to the eventbus if connection could not be established #19

Open TiruYasha opened 6 years ago

TiruYasha commented 6 years ago

We should make a retry functionality if there is no connection. And we should add a option for specifying the retry timer.

mikederksen commented 6 years ago

Sounds good. Maybe add it as a parameter to the BusProvider and in turn to the initializer and extension method? I think we should keep the option open for creating the publishers/listeners directly (or via some factory) instead of dependency injection

TiruYasha commented 6 years ago

Yes a factory would be nice, but we should make a new issue for that. As for the retry parameters. Maybe it is not necessary for the busprovider, because we only have to implement it in the initializer. If the connection fails the Createconnection should throw an exception.

mikederksen commented 6 years ago

Makes sense, yes. We can then catch this exception in the initializer or in another place where the busprovider is created.

We can implement this just in the initializer for now