Class ModelAssemblyRegistry
Registry reading the ModelAssemblyAttribute and providing the types exported by the attribute.
Inheritance
System.Object
ModelAssemblyRegistry
Implements
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 SourceModelAssemblyRegistry(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 SourceGetRuntimeElementsAsync(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. |