Show / Hide Table of Contents

Class ExportFactoryAdapter<T>

Component used to import parts that wish to dynamically create instances of other parts.

Inheritance
System.Object
ExportFactoryAdapter<T>
ExportFactoryAdapter<T, TMetadata>
Implements
IExportFactory<T>
IExportFactory
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 Source

ExportFactoryAdapter(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 Source

CreateExport()

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.

| Improve this Doc View Source

CreateInnerExport()

Creates the inner export.

Declaration
protected Export<T> CreateInnerExport()
Returns
Type Description
System.Composition.Export<T>

The new inner export.

| 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
System.Object.ToString()

Explicit Interface Implementations

| Improve this Doc View Source

IExportFactory.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.

Implements

IExportFactory<T>
IExportFactory

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX