Skip to content

stefan505/LightInject.Microsoft.DependencyInjection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LightInject.Microsoft.DependencyInjection

AppVeyor NuGet GitHub tag

Enables LightInject to be used as the service container in ASP.NET Core and Entity Framework 7 applications.

Installing

"dependencies": {
  "LightInject.Microsoft.DependencyInjection": "<version>"
}

Usage

public class Startup
{       
    public IServiceProvider ConfigureServices(IServiceCollection services)
    {
        var container = new ServiceContainer();
        return container.CreateServiceProvider(services);
    }
    
    public void Configure(IApplicationBuilder app)
    {          
        app.Run(async (context) =>
        {
            await context.Response.WriteAsync("Hello from LightInject");
        });
    }
}

About

Implements Microsoft.Extensions.DependencyInjection.Abstraction

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%