Class ExportFactory<TService>
An export factory.
Inheritance
System.Object
ExportFactory<TService>
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 SourceExportFactory(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. |
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 SourceCreateExport()
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. |
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 SourceIExportFactory.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. |
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. |