Method | Description | |
---|---|---|
Add ( IFactoryBuilderFunc item ) : void | ||
Add ( IFactoryBuilderInstance item ) : void | ||
Add ( IFactoryBuilderType item ) : void | ||
Build ( ContainerBuildOptions options = ContainerBuildOptions.Default ) : IContainer |
Create a new container with the component registrations that have been made. Build can only be called once per ContainerBuilder - this prevents ownership issues for provided instances. Build enables support for the relationship types that come with Autofac (e.g. Func, Owned, Meta, Lazy, IEnumerable.) To exclude support for these types, first create the container, then call Update() on the builder. |
|
RegisterCallback ( Action |
Register a callback that will be invoked when the container is configured. This is primarily for extending the builder syntax. |
Method | Description | |
---|---|---|
Build ( IComponentRegistry componentRegistry, bool excludeDefaultModules ) : void | ||
RegisterDefaultAdapters ( IComponentRegistry componentRegistry ) : void | ||
StartStartableComponents ( IComponentContext componentContext ) : void | ||
Update ( IComponentRegistry componentRegistry ) : void |
public Add ( IFactoryBuilderFunc item ) : void | ||
item | IFactoryBuilderFunc | |
return | void |
public Add ( IFactoryBuilderInstance item ) : void | ||
item | IFactoryBuilderInstance | |
return | void |
public Add ( IFactoryBuilderType item ) : void | ||
item | IFactoryBuilderType | |
return | void |
public Build ( ContainerBuildOptions options = ContainerBuildOptions.Default ) : IContainer | ||
options | ContainerBuildOptions | Options that influence the way the container is initialised. |
return | IContainer |
public RegisterCallback ( Action |
||
configurationCallback | Action |
Callback to execute. |
return | void |