Class AutofacContainer
- Namespace
- Mokkit.Containers.Autofac
- Assembly
- Mokkit.Containers.Autofac.dll
Mokkit container backed by Autofac. Each Mokkit scope maps to a nested Autofac lifetime scope, and resolution
delegates to Autofac (returning null for unregistered services so the aggregator can fall through).
public class AutofacContainer : BaseDependencyContainer, IDependencyContainerInheritance
Implements
Inherited Members
Methods
BeginScope(TestHostContext)
Begins a nested Autofac lifetime scope.
public IDependencyContainerScope BeginScope(TestHostContext context)Parameters
contextTestHostContext-
The test host context (unused).
Returns
- IDependencyContainerScope
-
A new scope wrapping the nested Autofac lifetime scope.