Show / Hide Table of Contents

Class ExportFactoryExtensions

Extension methods for IExportFactory<T>.

Inheritance
System.Object
ExportFactoryExtensions
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)
System.Object.ToString()
Namespace: Kephas.Composition
Assembly: Kephas.Core.dll
Syntax
public static class ExportFactoryExtensions

Methods

| Improve this Doc View Source

CreateExportedValue<T>(IExportFactory<T>)

Convenience method that creates the exported value.

Declaration
public static T CreateExportedValue<T>(this IExportFactory<T> exportFactory)
Parameters
Type Name Description
IExportFactory<T> exportFactory

The export factory.

Returns
Type Description
T

The exported value.

Type Parameters
Name Description
T

The exported value type.

| Improve this Doc View Source

CreateInitializedValue<T>(IExportFactory<T>, IContext)

Convenience method that creates the exported value and initializes it.

Declaration
public static T CreateInitializedValue<T>(this IExportFactory<T> exportFactory, IContext context)
Parameters
Type Name Description
IExportFactory<T> exportFactory

The export factory.

IContext context

The context.

Returns
Type Description
T

The exported value.

Type Parameters
Name Description
T

The exported value type.

| Improve this Doc View Source

CreateInitializedValueAsync<T>(IExportFactory<T>, IContext, CancellationToken)

Convenience method that creates the exported value and initializes it asynchronously.

Declaration
public static Task<T> CreateInitializedValueAsync<T>(this IExportFactory<T> exportFactory, IContext context, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IExportFactory<T> exportFactory

The export factory.

IContext context

The context.

System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<T>

The exported value.

Type Parameters
Name Description
T

The exported value type.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX