Open mikeandersun opened 7 years ago
Yes it is, you have to modify the ConfigureServices method in Startup.cs and create a new implementation of the Weapsy.Infrastructure.DependencyResolver.IResolver (and register it, the default one is AutofacResolver)
Remember that the Text app registers the services with Autofac as well, use the ConfigureServices method in https://github.com/weapsy/Weapsy/blob/master/src/Apps/Weapsy.Apps.Text/Startup.cs to register the relevant services.
I'll make the IOC configurable in the appsettings.json. That means that you can use an IOC of your choice and add a custom implementation of Weapsy.Infrastructure.DependencyResolver.IResolver based on it.
I decided to completely remove the dependency of Autofac and use the default service provider.
It is possible to remove
Autofac
dependency and use .NetCore
DI system? Or there is any restrictions in.netcore
DI?