Class DefaultModelSpaceProvider
The default implementation of a model space provider.
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
Assembly: Kephas.Model.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultModelSpaceProvider : Loggable, ILoggable, IModelSpaceProvider, IAsyncInitializable
Constructors
| Improve this Doc View SourceDefaultModelSpaceProvider(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 SourceContextFactory
Gets the context factory.
Declaration
public IContextFactory ContextFactory { get; }
Property Value
Type | Description |
---|---|
IContextFactory | The context factory. |
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 SourceCreateModelConstructionContext(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. |
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. |
GetModelSpace()
Gets the model space.
Declaration
public IModelSpace GetModelSpace()
Returns
Type | Description |
---|---|
IModelSpace | The model space. |
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. |