Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created December 16, 2018 21:04
Embed
What would you like to do?
ConfigureServices 2
private void ConfigureServices(IServiceCollection serviceCollection)
{
// Register services with DI system
serviceCollection.AddTransient<IEnvironmentService, EnvironmentService>();
serviceCollection.AddTransient<IConfigurationService, ConfigurationService>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment