Click or drag to resize

BenchConfiguration Class

The merged configuration for a Bench environment.
Inheritance Hierarchy

Namespace:  Mastersign.Bench
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public class BenchConfiguration : ResolvingPropertyCollection

The BenchConfiguration type exposes the following members.

Constructors
  NameDescription
Public methodBenchConfiguration(String)
Initializes a new instance of BenchConfiguration loading all configuration and app library files.
Public methodBenchConfiguration(String, Boolean, Boolean, Boolean)
Initializes a new instance of BenchConfiguration loading the specified set of configuration and app library files.
Top
Properties
  NameDescription
Public propertyAppLibraries
The app libraries defined in the configuration property AppLibs.
Public propertyAppProperties
The merged definition of the Bench apps.
Public propertyApps
The merged definition of the Bench apps as a AppIndexFacade.
Public propertyBenchResourceDir
The absolute path to the Bench resource directory.
Public propertyBenchRootDir
The absolute path to the root directory of Bench.
Public propertyCanTransferAppLibraryCache
Checks whether the cached app libraries of this Bench environment can be transfered in case of an export or cloning.
Public propertyCanTransferAppResourceCache
Checks whether the cached app resources of this Bench environment can be transfered in case of an export or cloning.
Public propertyCanTransferHomeDirectory
Checks whether the home directory of this Bench environment can be transfered in case of an export or cloning.
Public propertyCanTransferProjectDirectory
Checks whether the project directory of this Bench environment can be transfered in case of an export or cloning.
Public propertyDefaultValueSource
The backup value source for ungrouped properties.
(Inherited from PropertyCollection.)
Public propertySources
Gets an array with absolute paths for all configuration files used to compile this configuration.
Public propertyUse64Bit
Is true if the operating system supports 64Bit code and the Bench configuration allows 64Bit binaries.
Public propertyWithAppIndex
A flag which indicates if the app library was loaded during initialization of the BenchConfiguration.
Public propertyWithSiteConfiguration
A flag which indicates if the site configuration was loaded during the initialization of the BenchConfiguration.
Public propertyWithUserConfiguration
A flag which indicates if the user configuration was loaded during initialization of the BenchConfiguration.
Top
Methods
  NameDescription
Public methodAddResolver
Registers a number of property resolvers.
(Inherited from ResolvingPropertyCollection.)
Public methodCanGetValue
Checks, whether this object can retrieve the value for the specified property, or not.
(Inherited from PropertyCollection.)
Public methodClear
Deletes all properties in this collection.
(Inherited from PropertyCollection.)
Public methodContainsValue
Checks, whether this collection contains the specified property.
(Inherited from PropertyCollection.)
Public methodCopyBenchInitializationPropertiesFrom
Copy a couple of temporary properties, needed during the initialization of a Bench environment, from a source configuration to this configuration.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindSiteConfigFiles
Search for all existing site configuration files in the root directory of Bench and its parents.
Public methodGetAppLibrary
Gets an app library by its ID.
Public methodGetBooleanValue(String)
Gets the value of a property as a boolean.
(Inherited from PropertyCollection.)
Public methodGetBooleanValue(String, Boolean)
Gets the value of a property as a boolean, or a default value if the specified property does not exist or its value can not be properly converted.
(Inherited from PropertyCollection.)
Public methodGetConfigurationFiles
Lists the configuration files of the Bench environment.
Public methodGetHashCode (Inherited from Object.)
Public methodGetInt32Value(String)
Gets the value of a property as an integer.
(Inherited from PropertyCollection.)
Public methodGetInt32Value(String, Int32)
Gets the value of a property as an integer, or a default value if the specified property does not exist or its value can not be properly converted.
(Inherited from PropertyCollection.)
Public methodGetRawValue
Gets the unresolved and untransformed value of a property in this collection, without looking up the property in DefaultValueSource.
(Inherited from PropertyCollection.)
Public methodGetStringListValue(String)
Gets the value of a property as a string array.
(Inherited from PropertyCollection.)
Public methodGetStringListValue(String, String)
Gets the value of a property as a string array, or a default value if the specified property does not exist or its value can not be properly converted.
(Inherited from PropertyCollection.)
Public methodGetStringValue(String)
Gets the value of a property as a string.
(Inherited from PropertyCollection.)
Public methodGetStringValue(String, String)
Gets the value of a property as a string, or a default value if the specified property does not exist or its value can not be properly converted.
(Inherited from PropertyCollection.)
Public methodGetTransferPaths
Returns an array with relative paths to the directories and files, relevant for a transfer of the Bench environment.
Public methodGetType (Inherited from Object.)
Public methodGetValue(String)
Gets the value of the specified property.
(Inherited from PropertyCollection.)
Public methodGetValue(String, Object)
Gets the value of the specified property, or a given default value, in case the specified property does not exist.
(Inherited from PropertyCollection.)
Public methodStatic memberIsValidBenchRoot
Checks if the given path is a valid root path of a Bench environment.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodPropertyNames
Gets the names from all existing properties.
(Inherited from PropertyCollection.)
Public methodReload
Reloads the set of configuration files, specified during construction. Call this method to create an updated instance of BenchConfiguration after one of the configuration files was changed.
Public methodResetValue
Resets the specified property.
(Inherited from PropertyCollection.)
Protected methodResolveValue
The implementation of ResolveValue(String, Object), calling all registered resolvers in the order they were registered.
(Inherited from ResolvingPropertyCollection.)
Public methodSetValue(String, Boolean)
Sets a boolean value for the specified property.
(Inherited from PropertyCollection.)
Public methodSetValue(String, Int32)
Sets an integer value for the specified property.
(Inherited from PropertyCollection.)
Public methodSetValue(String, Object)
Sets the value of the specified property. If the property did exist until now, it is created.
(Inherited from PropertyCollection.)
Public methodSetValue(String, String)
Sets a string value for the specified property.
(Inherited from PropertyCollection.)
Public methodSetValue(String, String)
Sets a string array value for the specified property.
(Inherited from PropertyCollection.)
Public methodToString
Returns a string represenation of this property collection.
(Inherited from PropertyCollection.)
Public methodToString(Boolean)
Returns a string represenation of this property collection.
(Inherited from PropertyCollection.)
Top
Fields
  NameDescription
Public fieldStatic memberCONFIG_FILE
The relative path of the Bench configuration file.
Public fieldStatic memberMAIN_PS_LIB_FILE
The relative path of the PowerShell API library file.
Public fieldStatic memberROOT_SCRIPTS_PATTERN
A search pattern to find all root scripts in the res directory.
Top
Remarks

The configuration is merged by loading the following files:

  • default - res\config.md
  • custom - config\config.md
  • site - bench-site.md files (filename can be changed via custom config)
See Also