Class ExportFactoryAdapter<T, TMetadata>
An ExportFactory that provides metadata describing the created exports.
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, TMetadata> : ExportFactoryAdapter<T>, IExportFactory<T, TMetadata>, IExportFactory<T>, IExportFactory
Type Parameters
Name | Description |
---|---|
T | The contract type being created. |
TMetadata | The metadata required from the export. |
Constructors
| Improve this Doc View SourceExportFactoryAdapter(Func<Tuple<T, Action>>, TMetadata)
Initializes a new instance of the ExportFactoryAdapter<T, TMetadata> class.
Declaration
public ExportFactoryAdapter(Func<Tuple<T, Action>> exportCreator, TMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Tuple<T, System.Action>> | exportCreator | The export creator. |
TMetadata | metadata | The metadata. |
Properties
| Improve this Doc View SourceMetadata
Gets the metadata associated with the export.
Declaration
public TMetadata Metadata { get; }
Property Value
Type | Description |
---|---|
TMetadata |
Methods
| Improve this Doc View SourceCreateExport()
Create an instance of the exported part.
Declaration
public override IExport<T> CreateExport()
Returns
Type | Description |
---|---|
IExport<T> | A handle allowing the created part to be accessed then released. |
Overrides
Kephas.Composition.Mef.ExportFactoryAdapter<T>.CreateExport()
|
Improve this Doc
View Source
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
Kephas.Composition.Mef.ExportFactoryAdapter<T>.ToString()
Explicit Interface Implementations
| Improve this Doc View SourceIExportFactory<T, TMetadata>.CreateExport()
Create an instance of the exported part.
Declaration
IExport<T, TMetadata> IExportFactory<T, TMetadata>.CreateExport()
Returns
Type | Description |
---|---|
IExport<T, TMetadata> | A handle allowing the created part to be accessed then released. |