-
Notifications
You must be signed in to change notification settings - Fork 169
Description
Problem
As part of Steeltoe v4, it seems there's been a change in how connectors must be consumed. Instead of being able to inject native connection objects of libraries with preconfigured connection strings (how it was done traditionally), it now requires consumers to inject something similar to ConnectorFactory<RabbitMQOptions, IConnection>
. This is very intrusive as it would
a) require major refactoring to existing apps in potentially hundreds of classes
b) hinder adoption, as customers are reluctant to take on intrusive dependencies. Previously one could argue that steeltoe inclusion was only 1-2 lines of code in startup code that only preconfigures default parameters on objects they already use throughout their code.
Proposed solution
While I suspect the motivation is to support multiple named instances of the same service bindings, both syntaxes should be supported. Easy by default for simple scenarios, - advanced syntax for complex use cases. I would expect to be able to inject raw library connection objects with preconfigured connection strings.