Show / Hide Table of Contents

Class MefExportConventionsBuilder

Export conventions builder for MEF.

Inheritance
System.Object
MefExportConventionsBuilder
Implements
IExportConventionsBuilder
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.Mef.Conventions
Assembly: Kephas.Composition.Mef.dll
Syntax
public class MefExportConventionsBuilder : IExportConventionsBuilder

Methods

| Improve this Doc View Source

AddMetadata(String, Func<Type, Object>)

Add export metadata to the export.

Declaration
public IExportConventionsBuilder AddMetadata(string name, Func<Type, object> getValueFromPartType)
Parameters
Type Name Description
System.String name

The name of the metadata item.

System.Func<System.Type, System.Object> getValueFromPartType

A function that calculates the metadata value based on the type.

Returns
Type Description
IExportConventionsBuilder

An export builder allowing further configuration.

| Improve this Doc View Source

AddMetadata(String, Object)

Add export metadata to the export.

Declaration
public IExportConventionsBuilder AddMetadata(string name, object value)
Parameters
Type Name Description
System.String name

The name of the metadata item.

System.Object value

The metadata value.

Returns
Type Description
IExportConventionsBuilder

An export builder allowing further configuration.

| Improve this Doc View Source

AsContractType(Type)

Specify the contract type for the export.

Declaration
public IExportConventionsBuilder AsContractType(Type contractType)
Parameters
Type Name Description
System.Type contractType

The contract type.

Returns
Type Description
IExportConventionsBuilder

An export builder allowing further configuration.

Implements

IExportConventionsBuilder

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