C# Class NDomain.Configuration.AutofacConfigurator

Configurator for Autofac
显示文件 Open project: mfelicio/NDomain

Public Methods

Method Description
WithAutofac ( this b, IContainer container ) : IoCConfigurator

Configures a NDomain.IoC.IDependencyResolver to use Autofac based on the container. Useful to resolve application message handlers that depend on other components external to NDomain. The application's Autofac container will also get updated with registries for NDomain's components.

Method Details

WithAutofac() public static method

Configures a NDomain.IoC.IDependencyResolver to use Autofac based on the container. Useful to resolve application message handlers that depend on other components external to NDomain. The application's Autofac container will also get updated with registries for NDomain's components.
public static WithAutofac ( this b, IContainer container ) : IoCConfigurator
b this configurator instance
container IContainer application's Autofac container
return IoCConfigurator