ConfigurationBuilderExtensionsConfigureGemstoneDefaults(IConfigurationBuilder, Settings) Method

Configures the builder using the defined settings from Gemstone project configuration sources.

Definition

Namespace: Gemstone.Configuration
Assembly: Gemstone.Configuration (in Gemstone.Configuration.dll) Version: 1.0.128 -- Release Build+e642e346f6a184b82d0191f20af9f896bef9bb3d
public static IConfigurationBuilder ConfigureGemstoneDefaults(
	this IConfigurationBuilder builder,
	Settings settings
)

Parameters

builder  IConfigurationBuilder
The configuration builder.
settings  Settings
Settings for configuring default sources.

Return Value

IConfigurationBuilder
The configuration builder.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IConfigurationBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

This extension function configures common configuration sources for a Gemstone project. The Settings instance controls the configuration sources that are available. Handling of settings are defined in a hierarchy where the settings are loaded are in the following priority order, from lowest to hightest:
  • INI file (defaults.ini) - Machine Level
  • INI file (settings.ini) - Machine Level
  • SQLite database (settings.db) - User Level
  • Environment variables - Machine Level
  • Environment variables - User Level

See Also