Show / Hide Table of Contents

Class AutofacExportFactory<TService>

An Autofac export factory.

Inheritance
System.Object
AutofacExportFactory<TService>
AutofacExportFactory<TService, TMetadata>
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)
System.Object.ToString()
Namespace: Kephas.Composition.Autofac
Assembly: Kephas.Composition.Autofac.dll
Syntax
public class AutofacExportFactory<TService> : IExportFactory<TService>, IExportFactory
Type Parameters
Name Description
TService

Type of the service.

Constructors

| Improve this Doc View Source

AutofacExportFactory(Lazy<TService>)

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

Declaration
public AutofacExportFactory(Lazy<TService> servicePromise)
Parameters
Type Name Description
System.Lazy<TService> servicePromise

The service promise.

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.

Explicit Interface Implementations

| Improve this Doc View Source

IExportFactory.CreateExport()

Creates the export.

Declaration
IExport IExportFactory.CreateExport()
Returns
Type Description
IExport

The new export.

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