Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created December 16, 2018 14:52
Embed
What would you like to do?
Function Ctor 1
public Function()
{
// Set up Dependency Injection
var serviceCollection = new ServiceCollection();
ConfigureServices(serviceCollection);
var serviceProvider = serviceCollection.BuildServiceProvider();
// TODO: Get service from DI system
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment