Skip to content

RemnantSoftware/Remnant.Dependency.Autofac

Repository files navigation

Remnant Dependency Autofac

Autofac dependency injection adapter

Nuget package:

    Install-Package Remnant.Dependency.Autofac -Version 1.1.0

Create container for Autofac

var autofac = new ContainerBuilder();
Container.Create("MyContainer", new AutofacAdapter(autofac));
autofac.Build();
var container = Container.Instance;

Note: The 'Build' must be called on the autofac container builder, for it performs a callback which then constructs the container.

Get direct access to the internal DI container

var autofac = Container.Instance.InternalContainer<Autofac.IContainer>();

About

Autofac dependency injection adapter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages