Skip to content

Instantly share code, notes, and snippets.

@Ibro

Ibro/Startup.cs

Created Jan 18, 2020
Embed
What would you like to do?
ASP.NET Core DI
public void ConfigureServices(IServiceCollection services)
{
services.AddScoped<IMyScopedService, MyScopedService>();
services.AddSingleton<IMyConnectionManager, MyConnectionManager>();
}
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.