Whiteknight / StoneFruit

Cli commandlet host and execution environment
https://whiteknight.github.io/StoneFruit/
Apache License 2.0
0 stars 0 forks source link

Change the way we register handlers #22

Closed Whiteknight closed 2 years ago

Whiteknight commented 2 years ago

Consider a design where we register IHandlers directly with the container, and then resolve a list of all handlers in the IHandlers object. Then we can organize them however we want.

Whiteknight commented 2 years ago

We do register IHandler with the container when we want to resolve them with the ServiceProviderHandlerSource. We can also register IHandlerSource with the container and resolve things that way. This is all done in master now. Will be included in 2.0