Skip to content

illunix/AutoDependencyInjection

Repository files navigation

AutoDependencyInjection

NuGet NuGet

Auto generate dependency injection in .NET applications

Installation

You should install AutoDependencyInjection with NuGet:

Install-Package AutoDependencyInjection

Or via the .NET Core command line interface:

dotnet add package AutoDependencyInjection

Usage

public partial class Program
{
    public readonly Foo _foo;

    static void Main(string[] args)
    {
    }
}

When compile, following source will be injected.

public partial class Program
{
    public readonly Foo _foo;

    public Program(Foo foo)
    { 
        _foo = foo
    }

    static void Main(string[] args)
    {
    }
}

About

Auto generate dependency injection in .NET applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages