ConfigurationBuilderExtensionsConfigureGemstoneDefaults(IConfigurationBuilder, ActionIAppSettingsBuilder, Boolean, Boolean, Boolean, Boolean) Method
Configures the builder using the default configuration sources for Gemstone projects.
Namespace: Gemstone.ConfigurationAssembly: Gemstone.Configuration (in Gemstone.Configuration.dll) Version: 1.0.128 -- Release Build+e642e346f6a184b82d0191f20af9f896bef9bb3d
Gemstone.Configuration.ConfigurationBuilderExtensions.ConfigureGemstoneDefaults = function(builder, configureAppSettings, useINI, useSQLite, useEnvironmentalVariables, splitDescriptionLines);
- builder IConfigurationBuilder
- The configuration builder.
- configureAppSettings ActionIAppSettingsBuilder
- Action for configuring default app settings.
- useINI Boolean (Optional)
- INI file can be produced in lieu of a UI for configuration.
- useSQLite Boolean (Optional)
- Use SQLite for user configuration storage.
- useEnvironmentalVariables Boolean (Optional)
- Use environmental variables for configuration.
- splitDescriptionLines Boolean (Optional)
- Split long description lines into multiple lines.
IConfigurationBuilderThe configuration builder.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).
This extension function configures common configuration sources for a Gemstone project. The
provided parameters control 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