Show / Hide Table of Contents

Class ModelAssemblyRegistry

Registry reading the ModelAssemblyAttribute and providing the types exported by the attribute.

Inheritance
System.Object
ModelAssemblyRegistry
Implements
IRuntimeModelRegistry
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.Model.Runtime.ModelRegistries
Assembly: Kephas.Model.dll
Syntax
public class ModelAssemblyRegistry : IRuntimeModelRegistry

Constructors

| Improve this Doc View Source

ModelAssemblyRegistry(IAppRuntime, ITypeLoader, IModelAssemblyAttributeProvider)

Initializes a new instance of the ModelAssemblyRegistry class.

Declaration
public ModelAssemblyRegistry(IAppRuntime appRuntime, ITypeLoader typeLoader, IModelAssemblyAttributeProvider modelAssemblyAttributeProvider)
Parameters
Type Name Description
IAppRuntime appRuntime

The application runtime.

ITypeLoader typeLoader

The type loader.

IModelAssemblyAttributeProvider modelAssemblyAttributeProvider

The model assembly attribute provider.

Methods

| Improve this Doc View Source

GetRuntimeElementsAsync(CancellationToken)

Gets the runtime elements from the application assemblies.

Declaration
public Task<IEnumerable<object>> GetRuntimeElementsAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

The cancellation token.

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

A promise of an enumeration of runtime elements.

Implements

IRuntimeModelRegistry

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