Skip to content

Instantly share code, notes, and snippets.

@NeelBhatt
Created June 10, 2020 15:55
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 NeelBhatt/7e00925671d8efcd0db3f455bb12a810 to your computer and use it in GitHub Desktop.
Save NeelBhatt/7e00925671d8efcd0db3f455bb12a810 to your computer and use it in GitHub Desktop.
services.AddSingleton<ISingletonOperation, SingletonOperation>();
services.AddTransient<ITransientOperation, TransientOperation>();
services.AddScoped<IScopedOperation, ScopedOperation>();
services.AddTransient<IMyService, MyService>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment