Show / Hide Table of Contents

Class AutofacCompositionContainer

An Autofac composition container.

Inheritance
System.Object
AutofacCompositionContextBase
AutofacCompositionContainer
Implements
ICompositionContext
System.IDisposable
Inherited Members
AutofacCompositionContextBase.GetExport(Type, String)
AutofacCompositionContextBase.GetExports(Type)
AutofacCompositionContextBase.GetExport<T>(String)
AutofacCompositionContextBase.GetExports<T>()
AutofacCompositionContextBase.TryGetExport(Type, String)
AutofacCompositionContextBase.TryGetExport<T>(String)
AutofacCompositionContextBase.CreateScopedContext()
AutofacCompositionContextBase.Dispose()
AutofacCompositionContextBase.Dispose(Boolean)
AutofacCompositionContextBase.Initialize(ILifetimeScope)
AutofacCompositionContextBase.AssertNotDisposed()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Composition.Autofac.Hosting
Assembly: Kephas.Composition.Autofac.dll
Syntax
public class AutofacCompositionContainer : AutofacCompositionContextBase, ICompositionContainer, ICompositionContext, IDisposable

Constructors

| Improve this Doc View Source

AutofacCompositionContainer(ContainerBuilder)

Initializes a new instance of the AutofacCompositionContainer class.

Declaration
public AutofacCompositionContainer(ContainerBuilder containerBuilder)
Parameters
Type Name Description
Autofac.ContainerBuilder containerBuilder

The container builder.

Methods

| Improve this Doc View Source

GetCompositionContext(ILifetimeScope)

Gets the composition context wrapper for the provided composition context.

Declaration
public ICompositionContext GetCompositionContext(ILifetimeScope scope)
Parameters
Type Name Description
Autofac.ILifetimeScope scope

The lifetime scope.

Returns
Type Description
ICompositionContext

The composition context.

| Improve this Doc View Source

HandleDispose(ILifetimeScope)

Cleanups the given composition context.

Declaration
public void HandleDispose(ILifetimeScope lifetimeScope)
Parameters
Type Name Description
Autofac.ILifetimeScope lifetimeScope

The lifetime scope.

| Improve this Doc View Source

TryGetCompositionContext(IComponentContext, Boolean)

Tries to get the composition context wrapper for the provided composition context.

Declaration
public ICompositionContext TryGetCompositionContext(IComponentContext context, bool createNewIfMissing)
Parameters
Type Name Description
Autofac.IComponentContext context

The component context.

System.Boolean createNewIfMissing

True to create new if missing.

Returns
Type Description
ICompositionContext

The composition context wrapper.

Implements

ICompositionContext
System.IDisposable

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX