Created
April 11, 2021 20:32
-
-
Save StacyGay/31483d6c7177fea90cd074a4c70a75b7 to your computer and use it in GitHub Desktop.
Unity DI VNext Startup 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IServiceProvider ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc(); | |
var container = new UnityContainer(); | |
container.Populate(services); | |
return container.Resolve<IServiceProvider>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment