Skip to content

xkinepa/Alemow

Repository files navigation

Alemow

NuGet NuGet

License MIT

GitHub stars GitHub forks GitHub watchers

Alemow is an annotation based IoC boostrapper, working with Autofac, and reducing registering complexity heavily.

Full docs

Usages

    var builder = new ContainerBuilder();
    builder.AutoRegister(new SimpleAssemblySelector(Assembly.GetEntryAssembly()));
    using (var container = builder.Build())
    {
        var a = container.Resolve<IA>();
        a.Dump();
    }

    [Component]
    public class A : IA
    {
        [Inject("B")] private readonly IB _b;

        public void Dump()
        {
            Console.WriteLine(_b);
        }
    }

See Samples for full usage.

TODO

About

An annotation based Autofac IoC boostrapper

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages