Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.