Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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