Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.36 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.36 KB

Botox

Visit the Botox website for more information.

What is it?

Botox is designed to be a ultra light weigth depency injection framework for the .NET portable class libraries.

Basic use

Registrer a a resolution with an interface:

Botox.Registrer<IFakeClass, FakeClass>(new FakeClass());

Or

Botox.Registrer<IFakeClass>(new FakeClass());

Resolve:

Botox.Resolve<IFakeClass>()

The framework also supports creating instances of objects with constructor injection:

private class FakeClassInjection
    {
        public readonly IFakeClass fakeClass;

        public FakeClassInjection(IFakeClass fakeClass)
        {
            this.fakeClass = fakeClass;
        }
    }

var fakeClassInjection = Botox.CreateInstanceOf<FakeClassInjection>();

Motivation

The project was created due to the lack of injection frameworks available at the time with support for portable class libraries.

Installation

The project can be installed easiliy via NuGet or by downloading and compiling the source yourself.

License

See Lisence.txt