Skip to content

Instantly share code, notes, and snippets.

@tonysneed
Created December 16, 2018 21:04
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/8d49bb2074027d1f79c01441c20f87b4 to your computer and use it in GitHub Desktop.
Save tonysneed/8d49bb2074027d1f79c01441c20f87b4 to your computer and use it in GitHub Desktop.
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