BuildMaster SDK Reference
Version:

Config Class

When implemented by a derived class, represents configuration within a portion of the application.

Inheritance Hierarchy

  • object
    • Inedo.Configuration.Config

Syntax

public class Config

Constructors

Name Description
Config(string scope)

Initializes a new instance of the Config class.

Properties

Name Description
Scope

Gets the scope of the configuration items.

Methods

Name Description
GetConfigSource

Loads the configuration Inedo.Configuration.Sources.IConfigSource associated with this configuration.

ReadBoolean(string key)

Reads the value for the specified key using the Inedo.Configuration.Sources.IConfigSource returned from GetConfigSource and attempts to convert the result to a boolean value.

ReadDateTime(string key)

Reads the value for the specified key using the Inedo.Configuration.Sources.IConfigSource returned from GetConfigSource and attempts to convert the result to a DateTime value.

ReadInt32(string key)

Reads the value for the specified key using the Inedo.Configuration.Sources.IConfigSource returned from GetConfigSource and attempts to convert the result to an Int32 value.

ReadValue(string key)

Reads the value for the specified key using the Inedo.Configuration.Sources.IConfigSource returned from GetConfigSource.

WriteValue(string key, string value)

Writes the value for the specified key using the Inedo.Configuration.Sources.IConfigSource returned from GetConfigSource.

WriteValue(string key, bool? value)

Writes a boolean value.

WriteValue(string key, System.DateTime? value)

Writes a DateTime value.

WriteValue(string key, int? value)

Writes an Int32 value.

Remarks

It is recommended that implementers use a singleton pattern and have strongly typed properties that wrap the protected Read/Write value.