Show / Hide Table of Contents

Class DefaultModelSpaceProvider

The default implementation of a model space provider.

Inheritance
System.Object
Loggable
DefaultModelSpaceProvider
Implements
ILoggable
IModelSpaceProvider
IAsyncInitializable
Inherited Members
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
Assembly: Kephas.Model.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultModelSpaceProvider : Loggable, ILoggable, IModelSpaceProvider, IAsyncInitializable

Constructors

| Improve this Doc View Source

DefaultModelSpaceProvider(IContextFactory, ICollection<IModelInfoProvider>, IRuntimeModelElementFactory)

Initializes a new instance of the DefaultModelSpaceProvider class.

Declaration
public DefaultModelSpaceProvider(IContextFactory contextFactory, ICollection<IModelInfoProvider> modelInfoProviders, IRuntimeModelElementFactory runtimeModelElementFactory)
Parameters
Type Name Description
IContextFactory contextFactory

The context factory.

System.Collections.Generic.ICollection<IModelInfoProvider> modelInfoProviders

The model information providers.

IRuntimeModelElementFactory runtimeModelElementFactory

The runtime model element factory.

Properties

| Improve this Doc View Source

ContextFactory

Gets the context factory.

Declaration
public IContextFactory ContextFactory { get; }
Property Value
Type Description
IContextFactory

The context factory.

| Improve this Doc View Source

ModelInfoProviders

Gets the model information providers.

Declaration
public ICollection<IModelInfoProvider> ModelInfoProviders { get; }
Property Value
Type Description
System.Collections.Generic.ICollection<IModelInfoProvider>

The model information providers.

Methods

| Improve this Doc View Source

CreateModelConstructionContext(IContext)

Creates the model construction context.

Declaration
protected virtual ModelConstructionContext CreateModelConstructionContext(IContext parentContext)
Parameters
Type Name Description
IContext parentContext

Context for the parent.

Returns
Type Description
ModelConstructionContext

The new model construction context.

| Improve this Doc View Source

CreateModelSpace(IModelConstructionContext)

Creates the model space.

Declaration
protected virtual IModelSpace CreateModelSpace(IModelConstructionContext constructionContext)
Parameters
Type Name Description
IModelConstructionContext constructionContext

Context for the construction.

Returns
Type Description
IModelSpace

The new model space.

| Improve this Doc View Source

GetModelSpace()

Gets the model space.

Declaration
public IModelSpace GetModelSpace()
Returns
Type Description
IModelSpace

The model space.

| Improve this Doc View Source

InitializeAsync(IContext, CancellationToken)

Initializes the service asynchronously by loading the model space.

Declaration
public Task InitializeAsync(IContext context = null, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
IContext context

An optional context for initialization.

System.Threading.CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task

An awaitable task.

Implements

ILoggable
IModelSpaceProvider
IAsyncInitializable

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