Class AutofacCompositionContainer
An Autofac composition container.
Inherited Members
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 SourceAutofacCompositionContainer(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 SourceGetCompositionContext(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. |
HandleDispose(ILifetimeScope)
Cleanups the given composition context.
Declaration
public void HandleDispose(ILifetimeScope lifetimeScope)
Parameters
Type | Name | Description |
---|---|---|
Autofac.ILifetimeScope | lifetimeScope | The lifetime scope. |
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
System.IDisposable