Class ExportFactoryAdapter<T>
Component used to import parts that wish to dynamically create instances of other parts.
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)
Namespace: Kephas.Composition.Mef
Assembly: Kephas.Composition.Mef.dll
Syntax
public class ExportFactoryAdapter<T> : IExportFactory<T>, IExportFactory
Type Parameters
Name | Description |
---|---|
T | The contract type of the created parts. |
Constructors
| Improve this Doc View SourceExportFactoryAdapter(Func<Tuple<T, Action>>)
Initializes a new instance of the ExportFactoryAdapter<T> class.
Declaration
public ExportFactoryAdapter(Func<Tuple<T, Action>> exportCreator)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Tuple<T, System.Action>> | exportCreator | The export creator. |
Methods
| Improve this Doc View SourceCreateExport()
Create an instance of the exported part.
Declaration
public virtual IExport<T> CreateExport()
Returns
Type | Description |
---|---|
IExport<T> | A handle allowing the created part to be accessed then released. |
CreateInnerExport()
Creates the inner export.
Declaration
protected Export<T> CreateInnerExport()
Returns
Type | Description |
---|---|
System.Composition.Export<T> | The new inner export. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()
Explicit Interface Implementations
| Improve this Doc View SourceIExportFactory.CreateExport()
Create an instance of the exported part.
Declaration
IExport IExportFactory.CreateExport()
Returns
Type | Description |
---|---|
IExport | A handle allowing the created part to be accessed then released. |