Skip to content

Instantly share code, notes, and snippets.

@ankitvijay
Last active March 16, 2020 20:03
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 ankitvijay/619cc66aa3b79173dfb1a7c2009cc167 to your computer and use it in GitHub Desktop.
Save ankitvijay/619cc66aa3b79173dfb1a7c2009cc167 to your computer and use it in GitHub Desktop.
Captive Dependency 3
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddSingleton<SingletonDependency>();
services.AddTransient<TransientDependency>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment