Class AutofacExportFactory<TService>
An Autofac export factory.
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
Assembly: Kephas.Composition.Autofac.dll
Syntax
public class AutofacExportFactory<TService> : IExportFactory<TService>, IExportFactory
Type Parameters
| Name | Description |
|---|---|
| TService | Type of the service. |
Constructors
| Improve this Doc View SourceAutofacExportFactory(Lazy<TService>)
Initializes a new instance of the AutofacExportFactory<TService> class. class.
Declaration
public AutofacExportFactory(Lazy<TService> servicePromise)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Lazy<TService> | servicePromise | The service promise. |
Methods
| Improve this Doc View SourceCreateExport()
Create an instance of the exported part.
Declaration
public IExport<TService> CreateExport()
Returns
| Type | Description |
|---|---|
| IExport<TService> | A handle allowing the created part to be accessed then released. |
Explicit Interface Implementations
| Improve this Doc View SourceIExportFactory.CreateExport()
Creates the export.
Declaration
IExport IExportFactory.CreateExport()
Returns
| Type | Description |
|---|---|
| IExport | The new export. |