Answers for "eager loading singleton c# dependency injection"

C#
0

eager loading singleton c# dependency injection

// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
    // Has message bus connection
    services.AddSingleton<ISomeRespository, SomeRepository>();

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(... ISomeRespository db)
{
Posted by: Guest on March-01-2022

Code answers related to "eager loading singleton c# dependency injection"

C# Answers by Framework

Browse Popular Code Answers by Language