Skip to content

Micro dependency injection framework for portable class libraries

License

Notifications You must be signed in to change notification settings

projecteon/Botox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Micro dependency injection framework for portable class libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published