Table of Contents

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, IDependencyContainer

Inheritance

Implements

Inherited Members

Methods

BeginScope(TestHostContext)

Begins a nested Autofac lifetime scope.

public IDependencyContainerScope BeginScope(TestHostContext context)

Parameters

context TestHostContext

The test host context (unused).

Returns

IDependencyContainerScope

A new scope wrapping the nested Autofac lifetime scope.