LightInject.MicrosoftDI 1.0.2

Install-Package LightInject.MicrosoftDI -Version 1.0.2
dotnet add package LightInject.MicrosoftDI --version 1.0.2
<PackageReference Include="LightInject.MicrosoftDI" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LightInject.MicrosoftDI --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: LightInject.MicrosoftDI, 1.0.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install LightInject.MicrosoftDI as a Cake Addin
#addin nuget:?package=LightInject.MicrosoftDI&version=1.0.2

// Install LightInject.MicrosoftDI as a Cake Tool
#tool nuget:?package=LightInject.MicrosoftDI&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

LightInject.MicrosoftDI

Implementation of Microsoft IServiceCollection, IServiceProvider based on LightInject Container

Sample AspNetCore

public class Startup
    {
        public IServiceProvider ConfigureServices(IServiceCollection services)
        {
            // Create Container wrapper over IServiceCollection
            var container = new ServiceContainer(services);
            container.RegisterInstance<IServiceContainer>(container);

            /**
              Container customization
            /**/

            // Apply all services registered through the IServiceCollection and return IServiceProvider
            return container.CreateServiceProvider();
        }

        public void Configure(IApplicationBuilder app, IHostingEnvironment env)
        {  
            /**
            Starting app
            /**/
            
            app.UseMvc();
        }
    }

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 455 2/1/2019
1.0.1 363 2/1/2019
1.0.0 375 2/1/2019