Class AutofacCompositionContainerBuilder
An Autofac composition container builder.
Inheritance
System.Object
AutofacCompositionContainerBuilder
Implements
Inherited Members
CompositionContainerBuilderBase<AutofacCompositionContainerBuilder>.WithConventionAssembly(Assembly)
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 AutofacCompositionContainerBuilder : CompositionContainerBuilderBase<AutofacCompositionContainerBuilder>, ICompositionContainerBuilder
Constructors
| Improve this Doc View SourceAutofacCompositionContainerBuilder(ICompositionRegistrationContext)
Initializes a new instance of the AutofacCompositionContainerBuilder class.
Declaration
public AutofacCompositionContainerBuilder(ICompositionRegistrationContext context)
Parameters
Type | Name | Description |
---|---|---|
ICompositionRegistrationContext | context | The context. |
Methods
| Improve this Doc View SourceCreateContainerCore(IConventionsBuilder, IEnumerable<Type>)
Creates a new composition container based on the provided conventions and assembly parts.
Declaration
protected override ICompositionContext CreateContainerCore(IConventionsBuilder conventions, IEnumerable<Type> parts)
Parameters
Type | Name | Description |
---|---|---|
IConventionsBuilder | conventions | The conventions. |
System.Collections.Generic.IEnumerable<System.Type> | parts | The parts candidating for composition. |
Returns
Type | Description |
---|---|
ICompositionContext | A new composition container. |
Overrides
Kephas.Composition.Hosting.CompositionContainerBuilderBase<Kephas.Composition.Autofac.Hosting.AutofacCompositionContainerBuilder>.CreateContainerCore(Kephas.Composition.Conventions.IConventionsBuilder, System.Collections.Generic.IEnumerable<System.Type>)
|
Improve this Doc
View Source
CreateConventionsBuilder()
Factory method for creating the conventions builder.
Declaration
protected override IConventionsBuilder CreateConventionsBuilder()
Returns
Type | Description |
---|---|
IConventionsBuilder | A newly created conventions builder. |
Overrides
Kephas.Composition.Hosting.CompositionContainerBuilderBase<Kephas.Composition.Autofac.Hosting.AutofacCompositionContainerBuilder>.CreateConventionsBuilder()
|
Improve this Doc
View Source
WithConfig(Action<ContainerBuilder>)
Adds a builder configuration action.
Declaration
public AutofacCompositionContainerBuilder WithConfig(Action<ContainerBuilder> config)
Parameters
Type | Name | Description |
---|---|---|
System.Action<Autofac.ContainerBuilder> | config | The configuration. |
Returns
Type | Description |
---|---|
AutofacCompositionContainerBuilder | This builder. |
WithContainerBuilder(ContainerBuilder)
Sets the container builder to be used for the composition.
Declaration
public AutofacCompositionContainerBuilder WithContainerBuilder(ContainerBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Autofac.ContainerBuilder | builder | The builder. |
Returns
Type | Description |
---|---|
AutofacCompositionContainerBuilder | This builder. |