Show / Hide Table of Contents

Class DefaultRuntimeModelInfoProvider

Model provider based on the .NET runtime and the type system.

Inheritance
System.Object
Loggable
RuntimeModelInfoProviderBase<DefaultRuntimeModelInfoProvider>
DefaultRuntimeModelInfoProvider
Implements
ILoggable
IModelInfoProvider
Inherited Members
RuntimeModelInfoProviderBase<DefaultRuntimeModelInfoProvider>.RuntimeModelElementFactory
RuntimeModelInfoProviderBase<DefaultRuntimeModelInfoProvider>.GetElementInfosAsync(IModelConstructionContext, CancellationToken)
Loggable.Logger
Loggable.GetLogger()
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.Model.Runtime
Assembly: Kephas.Model.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultRuntimeModelInfoProvider : RuntimeModelInfoProviderBase<DefaultRuntimeModelInfoProvider>, ILoggable, IModelInfoProvider

Constructors

| Improve this Doc View Source

DefaultRuntimeModelInfoProvider(IRuntimeModelElementFactory, ICollection<IRuntimeModelRegistry>)

Initializes a new instance of the DefaultRuntimeModelInfoProvider class.

Declaration
public DefaultRuntimeModelInfoProvider(IRuntimeModelElementFactory runtimeModelElementFactory, ICollection<IRuntimeModelRegistry> modelRegistries)
Parameters
Type Name Description
IRuntimeModelElementFactory runtimeModelElementFactory

The runtime model info factory.

System.Collections.Generic.ICollection<IRuntimeModelRegistry> modelRegistries

The model registries.

Methods

| Improve this Doc View Source

GetElementInfosCoreAsync(IModelConstructionContext, CancellationToken)

Gets the element infos used for building the model space.

Declaration
protected override Task<IEnumerable<IElementInfo>> GetElementInfosCoreAsync(IModelConstructionContext constructionContext, CancellationToken cancellationToken)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<IElementInfo>>

An awaitable task promising an enumeration of element information.

Overrides
Kephas.Model.Runtime.RuntimeModelInfoProviderBase<Kephas.Model.Runtime.DefaultRuntimeModelInfoProvider>.GetElementInfosCoreAsync(Kephas.Model.Construction.IModelConstructionContext, System.Threading.CancellationToken)
| Improve this Doc View Source

TryGetModelElementInfo(IElementInfo, IModelConstructionContext)

Tries to get an IElementInfo of the model space based on the provided native element information.

Declaration
public override IElementInfo TryGetModelElementInfo(IElementInfo nativeElementInfo, IModelConstructionContext constructionContext)
Parameters
Type Name Description
IElementInfo nativeElementInfo

The native element information.

IModelConstructionContext constructionContext

Context for the construction.

Returns
Type Description
IElementInfo

The constructed generic type or null if the provider cannot handle the provided type information.

Overrides
Kephas.Model.Runtime.RuntimeModelInfoProviderBase<Kephas.Model.Runtime.DefaultRuntimeModelInfoProvider>.TryGetModelElementInfo(Kephas.Reflection.IElementInfo, Kephas.Model.Construction.IModelConstructionContext)
Remarks

A return value of null indicates only that the provided nativeElementInfo cannot be handled. For any other errors an exception should be thrown.

Implements

ILoggable
IModelInfoProvider

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