Created
October 16, 2018 07:03
-
-
Save stevejgordon/51ea36cef5ebcdc7f9d10c409ef00770 to your computer and use it in GitHub Desktop.
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
var services = new ServiceCollection(); | |
services.AddHttpClient(); | |
var container = new Container(); | |
container.Configure(config => | |
{ | |
// Register stuff in container, using the StructureMap APIs... | |
//Populate the container using the service collection... | |
config.Populate(services); | |
}); | |
var serviceProvider = container.GetInstance<IServiceProvider>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment