Class DbResourceConfiguration

The configuration class that is used to configure the Resource Provider. This class contains various configuration settings that the provider requires to operate both at design time and runtime.

The application uses the static Current property to access the actual configuration settings object. By default it reads the configuration settings from web.config (at runtime). You can override this behavior by creating your own configuration object and assigning it to the DbResourceConfiguration.Current property.

System.Object
  Westwind.Utilities.Configuration.AppConfiguration
    Westwind.Globalization.DbResourceConfiguration
public class DbResourceConfiguration : AppConfiguration

Class Members

MemberDescription

Constructor

Base constructor that doesn't do anything to the default values.

ConfigurationMode

Determines how configuration information is stored: Config, Json or XML Default uses .NET configuration files.

Current

DbResourceDataManagerType

Allows you to override the data provider used to access resources. Defaults to Sql Server. To override set this value during application startup - typical on DbResourceConfiguration.Current.DbResourceDataManagerType

This type instance is used to instantiate the actual provider.

LoadedProviders

Keep track of loaded providers so we can unload them

OnAuthorizeLocalizationAdministration

Internally used handler that is generically set to execute authorization when accessing the Localization handler

ResourceSetValueConverters

AddResourceSetValueConverter

public void AddResourceSetValueConverter(IResourceSetValueConverter converter)

ClearResourceCache

public static void ClearResourceCache()

CreateDbResourceDataManager

Creates an instance of the DbResourceDataManager based on configuration settings

public static DbResourceDataManager CreateDbResourceDataManager()

ActiveConfiguration

Name of a LocalizationConfiguration entry that is loaded from the database if available. Defaults to null - if set reads these configuration settings other than the database connection string from an entry in the LocalizationConfigurations table.

AddMissingResources

Determines whether any resources that are not found are automatically added to the resource file.

Note only applies to the Invariant culture.

BingClientId

API key for Bing Translate API in the Administration API. https://www.microsoft.com/en-us/translator/getstarted.aspx

ConnectionString

Database connection string to the resource data.

The string can either be a full connection string or an entry in the ConnectionStrings section of web.config.

DataProvider

Determines which database provider is used. internally sets the DbResourceDataManagerType when set.

GoogleApiKey

Google Translate API Key used to access Translate API. Note this is a for pay API!

LocalizationFormWebPath

Determines the location of the Localization form in a Web relative path. This form is popped up when clicking on Edit Resources in the DbResourceControl

ResourceAccessMode

Default mechanism used to access resources in DbRes.T(). This setting is global and used by all resources running through the DbResourceManage/Provider.

This doesn't not affect Generated REsources which have their own ResourceAccesssMode override that can be explicitly overridden.

ResourceBaseNamespace

The namespace used for exporting and importing resources

ResourceTableName

Database table name used in the database

ResxBaseFolder

The base physical path used to read and write RESX resources for resource imports and exports. This path can either be a virtual path in Web apps or a physical disk path. Used only by the Web Admin form. All explicit API imports and exports are can pass in the base path explicitly.

ResxExportProjectType

Determines how what type of project we are working with

StringLocalizerResourcePath

The ResourcePath used for IStringLocalizer as configured in .AddLocalization() defaults to Properties.

StronglyTypedGlobalResource

Path of an optionally generated strongly typed resource which is created when exporting to ResX resources.

Leave this value blank if you don't want a strongly typed resource class generated for you.

Otherwise format is: ~/App_Code/Resources.cs

Requirements

Namespace: Westwind.Globalization
Assembly: westwind.globalization.dll

© West Wind Technologies, 2006 - 2019 • Updated: 01/24/18
Comment or report problem with topic