I wanted to add a resolver that did not provide objects (which seems to be your common scenario) but typed values from a configuration database infrastructure. The configuration database would have its own resolver. I would like it to compose with whatever other strategy the rest of the application decides to use. For example:
| [Import("configdb://Acme/PartsDepartment/Widget/WidgetStore/Database/CommandTimeout")] |
| publicTimeSpanCommandTimeout{get;set;} |
Other import attributes would use your common strategies.
Although my interest may be non-normative, the issue is not. The simple fact is that users should not be pigeonholed into a single strategy. How could libraries using differing strategies be composed, for example? I'd prefer to drop everything in the same bag and stir (er...Bind) rather than having to maintain several isolated containers and remember which components are design to go with which resolvers.
This seems that it would be awfully common. Is there something I'm missing?