Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created December 16, 2018 14:52
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 tonysneed/2e917f458cb51856794c841cf3a2778e to your computer and use it in GitHub Desktop.
Save tonysneed/2e917f458cb51856794c841cf3a2778e to your computer and use it in GitHub Desktop.
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