Ninject dependency binding from xml
Ninject kernel binding is like this as you know.
kernel.Bind<IMyService>().To<MyService>();
I want to get MyService from xml. WebConfig or App.Config like this.
<add key="service" value="MyNamespace.MyService">
I can get this string in code. But How can I use it
kernel.Bind<IMyService>().To<???>();
Or can Niniject support this as default?
No comments:
Post a Comment