Show / Hide Table of Contents

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
System.Object
EnvironmentRegistry
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: 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 Source

DocumentProviderTypes

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>
| Improve this Doc View Source

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX