Skip to content

Shuttle.Core.Autofac

PM> Install-Package Shuttle.Core.Autofac

The implementation for Autofac makes use of both a ComponentRegistry that implements the IComponentRegistry interface as well as an ComponentResolver that implements the IComponentResolver interface.

var builder = new ContainerBuilder();

var registry = new AutofacComponentRegistry(builder);

// register all components

var resolver = new AutofacComponentResolver(builder.Build());
Autofac has loaded