Class EnvironmentRegistry
A singleton (per DI environment) registry which is used to indicate which types of expression evaluator and document provider are to be enabled.
Inheritance
Inherited Members
Namespace: ZptSharp.Hosting
Assembly: ZptSharp.Abstractions.dll
Syntax
public class EnvironmentRegistry
Remarks
This type is set-up by the dependency injection registration extension methods, with items added as each component of ZptSharp is enabled. Specifically this class is used to track which document providers (see IReadsAndWritesDocument) and expression evaluators (see IEvaluatesExpression) are enabled for use in the current environment.
This registry is required because those two types of functionality are extensible and semi-plugin-based. Whilst they are not fully loaded at runtime (true plugins), they are selected optionally during dependency injection configuration. This means that runtime services need this list of which are available.
Properties
| Improve this Doc View SourceDocumentProviderTypes
Gets a collection of the document provider types which are enabled for use in the ZptSharp environment.
Declaration
public ISet<Type> DocumentProviderTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ISet<System.Type> |
ExpresionEvaluatorTypes
Gets a collection of the expression evaluator types which are enabled for use in the ZptSharp environment.
Declaration
public IDictionary<string, Type> ExpresionEvaluatorTypes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Type> |