Skip to content

Conversation

@rayao
Copy link
Contributor

@rayao rayao commented Jan 31, 2016

Use Micorsoft DI framework to replace current Dictionary<,> based service registration.
This is basically identical to my previous #264. Compared to option 1 #285, this is a relatively conservative change. It's up to you to make a choice.
In this change ApiConfiguration has its service registration/resolve built upon MS.FX.DI, almost all public interfaces remain same.
There's 1 major breaking change:
Services or hook handlers can't be resolved before ApiConfiguraion committed.

Personally I like option 1 more, IMO it's cleaner, more componentized, and the building pattern mimics what's in ASP.NET MVC.

@rayao
Copy link
Contributor Author

rayao commented Feb 17, 2016

Go with option 1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants