/Alemow

An annotation based Autofac IoC boostrapper

Primary LanguageC#MIT LicenseMIT

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