A lightweight IOC Container that is powerful enough to do all the things you need it to do.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon G. e4fed15a2a
- update version suffix to beta3
21 hours ago
..
Properties - add debug launch settings 5 days ago
FactoryGenerator.cs - fix generic factory generation 21 hours ago
LightweightIocContainer.FactoryGenerator.csproj - update version suffix to beta3 21 hours ago
README.md - update readme 3 days ago

README.md

Get started with the Lightweight IOC Container Factory Generator

How to install

The easiest way to install the Lightweight IOC Container is by using NuGet through the .NET CLI:

> dotnet add package LightweightIocContainer.FactoryGenerator --version 5.0.0

Example usage

When registering an interface you can use the WithGeneratedFactory<>() method to generate a factory for the registered type:

public class SampleInstaller : IIocInstaller
{
    public void Install(IRegistrationCollector registration)
    {
        registration.Add<ISampleClass, SampleClass>().WithGeneratedFactory<ISampleClassFactory>();
    }
}