Show / Hide Table of Contents

Class ExportFactory<TService>

An export factory.

Inheritance
System.Object
ExportFactory<TService>
Implements
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> : IExportFactory<TService>, IExportFactory
Type Parameters
Name Description
TService

Type of the service.

Constructors

| Improve this Doc View Source

ExportFactory(Func<TService>)

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

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

The factory.

| Improve this Doc View Source

ExportFactory(Func<Tuple<TService, Action>>)

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

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

The factory.

Methods

| Improve this Doc View Source

CreateExport()

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.

| 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()

Create an instance of the exported part.

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

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