C# 클래스 Westwind.Globalization.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.
상속: Westwind.Utilities.Configuration.AppConfiguration
파일 보기 프로젝트 열기: RickStrahl/Westwind.Globalization 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ConfigurationMode ConfigurationModes
Current DbResourceConfiguration
LoadedProviders List
ResourceSetValueConverters List

공개 메소드들

메소드 설명
AddResourceSetValueConverter ( IResourceSetValueConverter converter ) : void
ClearResourceCache ( ) : void

This static method clears all resources from the loaded Resource Providers and forces them to be reloaded the next time they are requested. Use this method after you've edited resources in the database and you want to refresh the UI to show the newly changed values. This method works by internally tracking all the loaded ResourceProvider instances and calling the IwwResourceProvider.ClearResourceCache() method on each of the provider instances. This method is called by the Resource Administration form when you explicitly click the Reload Resources button. Class DbResourceConfiguration

CreateDbResourceDataManager ( ) : DbResourceDataManager

Creates an instance of the DbResourceDataManager based on configuration settings

보호된 메소드들

메소드 설명
OnCreateDefaultProvider ( string sectionName, object configData ) : IConfigurationProvider

Override this method to create the custom default provider. Here we allow for different configuration providers so we don't have to rely on .NET configuration classed (for vNext)

비공개 메소드들

메소드 설명
DbResourceConfiguration ( ) : System

Static constructor for the Current property - guarantees this code fires exactly once giving us a singleton instance of the configuration object.

메소드 상세

AddResourceSetValueConverter() 공개 메소드

public AddResourceSetValueConverter ( IResourceSetValueConverter converter ) : void
converter IResourceSetValueConverter
리턴 void

ClearResourceCache() 공개 정적인 메소드

This static method clears all resources from the loaded Resource Providers and forces them to be reloaded the next time they are requested. Use this method after you've edited resources in the database and you want to refresh the UI to show the newly changed values. This method works by internally tracking all the loaded ResourceProvider instances and calling the IwwResourceProvider.ClearResourceCache() method on each of the provider instances. This method is called by the Resource Administration form when you explicitly click the Reload Resources button. Class DbResourceConfiguration
public static ClearResourceCache ( ) : void
리턴 void

CreateDbResourceDataManager() 공개 정적인 메소드

Creates an instance of the DbResourceDataManager based on configuration settings
public static CreateDbResourceDataManager ( ) : DbResourceDataManager
리턴 DbResourceDataManager

OnCreateDefaultProvider() 보호된 메소드

Override this method to create the custom default provider. Here we allow for different configuration providers so we don't have to rely on .NET configuration classed (for vNext)
protected OnCreateDefaultProvider ( string sectionName, object configData ) : IConfigurationProvider
sectionName string
configData object
리턴 IConfigurationProvider

프로퍼티 상세

ConfigurationMode 공개적으로 정적으로 프로퍼티

Determines how configuration information is stored: Config, Json or XML Default uses .NET configuration files.
public static ConfigurationModes ConfigurationMode
리턴 ConfigurationModes

Current 공개적으로 정적으로 프로퍼티

A global instance of the current configuration. By default this instance reads its configuration values from web.config at runtime, but it can be overridden to assign specific values or completely replace this object. NOTE: Any assignment made to this property should be made at Application_Start or other 'application initialization' event so that these settings are applied BEFORE the resource provider is used for the first time.
public static DbResourceConfiguration,Westwind.Globalization Current
리턴 DbResourceConfiguration

LoadedProviders 공개적으로 정적으로 프로퍼티

Keep track of loaded providers so we can unload them
public static List LoadedProviders
리턴 List

ResourceSetValueConverters 공개적으로 프로퍼티

public List ResourceSetValueConverters
리턴 List