Skip to content

autofac/Autofac.Extras.CommonServiceLocator

Repository files navigation

Image for: Repository files navigation

Autofac.Extras.CommonServiceLocator

Common Service Locator implementation for Autofac.

Please file issues and pull requests for this package in this repository rather than in the Autofac core repo.

Quick Start

Image for: Quick Start
var builder = new ContainerBuilder();

// Perform registrations and build the container.
var container = builder.Build();

// Set the service locator to an AutofacServiceLocator.
var csl = new AutofacServiceLocator(container);
ServiceLocator.SetLocatorProvider(() => csl);

Check out the Autofac Common Service Locator documentation for more information.

Get Help

Image for: Get Help

Need help with Autofac? We have a documentation site as well as API documentation. We're ready to answer your questions on Stack Overflow or check out the discussion forum.

About

Image for: About

Common Service Locator implementation for Autofac IoC

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

Image for: Packages 0
No packages published

Contributors 6

Image for: Contributors 6