Show / Hide Table of Contents

Class ExportFactory<TService, TMetadata>

An export factory with metadata.

Inheritance
System.Object
ExportFactory<TService, TMetadata>
Implements
IExportFactory<TService, TMetadata>
IExportFactory<TService>
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.ExportFactories
Assembly: Kephas.Core.dll
Syntax
public class ExportFactory<TService, TMetadata> : IExportFactory<TService, TMetadata>, IExportFactory<TService>, IExportFactory
Type Parameters
Name Description
TService

Type of the service.

TMetadata

Type of the metadata.

Constructors

| Improve this Doc View Source

ExportFactory(Func<TService>, TMetadata)

Initializes a new instance of the ExportFactory<TService, TMetadata> class.

Declaration
public ExportFactory(Func<TService> factory, TMetadata metadata)
Parameters
Type Name Description
System.Func<TService> factory

The factory.

TMetadata metadata

The metadata.

Properties

| Improve this Doc View Source

Metadata

Gets or sets the metadata associated with the export.

Declaration
public TMetadata Metadata { get; set; }
Property Value
Type Description
TMetadata

The metadata associated with the export.

Methods

| Improve this Doc View Source

CreateExport()

Create an instance of the exported part.

Declaration
public IExport<TService, TMetadata> CreateExport()
Returns
Type Description
IExport<TService, TMetadata>

A handle allowing the created part to be accessed then released.

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

| Improve this Doc View Source

IExportFactory<TService>.CreateExport()

Creates the export.

Declaration
IExport<TService> IExportFactory<TService>.CreateExport()
Returns
Type Description
IExport<TService>

The new export.

Implements

IExportFactory<T, TMetadata>
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>)
ExportFactoryExtensions.CreateExportedValue<T>(IExportFactory<T>)
ExportFactoryExtensions.CreateInitializedValue<T>(IExportFactory<T>, IContext)
ExportFactoryExtensions.CreateInitializedValueAsync<T>(IExportFactory<T>, IContext, CancellationToken)
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