Show / Hide Table of Contents

Interface IExportConventionsBuilder

Contract for export conventions builder.

Namespace: Kephas.Composition.Conventions
Assembly: Kephas.Core.dll
Syntax
public interface IExportConventionsBuilder

Methods

| Improve this Doc View Source

AddMetadata(String, Func<Type, Object>)

Add export metadata to the export.

Declaration
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
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
IExportConventionsBuilder AsContractType(Type contractType)
Parameters
Type Name Description
System.Type contractType

The contract type.

Returns
Type Description
IExportConventionsBuilder

An export builder allowing further configuration.

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