Skip to content

Instantly share code, notes, and snippets.

@JoshuaCode
Created June 17, 2016 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshuaCode/51844021a6f9cbdce91976c13f9a9efc to your computer and use it in GitHub Desktop.
Save JoshuaCode/51844021a6f9cbdce91976c13f9a9efc to your computer and use it in GitHub Desktop.
public IServiceProvider ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddMvc();
var container = new Container().WithDependencyInjectionAdapter(services);
var serviceProvider = container.Resolve<IServiceProvider>();
return serviceProvider;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment