Skip to content

Instantly share code, notes, and snippets.

@StacyGay
Created April 11, 2021 20:32
Show Gist options
  • Save StacyGay/31483d6c7177fea90cd074a4c70a75b7 to your computer and use it in GitHub Desktop.
Save StacyGay/31483d6c7177fea90cd074a4c70a75b7 to your computer and use it in GitHub Desktop.
Unity DI VNext Startup 2
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