C# 클래스 Westwind.Globalization.DbSimpleResourceProvider

상속: IResourceProvider, IWestWindResourceProvider
파일 보기 프로젝트 열기: RickStrahl/Westwind.Globalization 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ProviderLoaded bool

공개 메소드들

메소드 설명
ClearResourceCache ( ) : void

Clears out the resource cache which forces all resources to be reloaded from the database. This is never actually called as far as I can tell

DbSimpleResourceProvider ( string virtualPath, string resourceSet ) : System

GetImplicitResourceKeys ( string keyPrefix ) : ICollection

Called when an ASP.NET Page is compiled asking for a collection of keys that match a given control name (keyPrefix). This routine for example returns control.Text,control.ToolTip from the Resource collection if they exist when a request for "control" is made as the key prefix.

GetObject ( System.Web.Compilation.ImplicitResourceKey implicitKey, CultureInfo culture ) : object

Returns an Implicit key value from the ResourceSet. Note this method is called only if a ResourceKey was found in the ResourceSet at load time. If a resource cannot be located this method is never called to retrieve it. IOW, GetImplicitResourceKeys determines which keys are actually retrievable. This method simply parses the Implicit key and then retrieves the value using standard GetObject logic for the ResourceID.

비공개 메소드들

메소드 설명
ConstructFullKey ( System.Web.Compilation.ImplicitResourceKey entry ) : string

Routine that generates a full resource key string from an Implicit Resource Key value

GetObjectInternal ( string resourceKey, string cultureName ) : object

Internal lookup method that handles retrieving a resource by its resource id and culture. Realistically this method is always called with the culture being null or empty but the routine handles resource fallback in case the code is manually called.

GetResourceCache ( string cultureName ) : IDictionary

Manages caching of the Resource Sets. Once loaded the values are loaded from the cache only.

IResourceProvider ( string ResourceKey, CultureInfo Culture ) : object

The main worker method that retrieves a resource key for a given culture from a ResourceSet.

메소드 상세

ClearResourceCache() 공개 메소드

Clears out the resource cache which forces all resources to be reloaded from the database. This is never actually called as far as I can tell
public ClearResourceCache ( ) : void
리턴 void

DbSimpleResourceProvider() 공개 메소드

public DbSimpleResourceProvider ( string virtualPath, string resourceSet ) : System
virtualPath string The virtual path to the Web application
resourceSet string Name of the resource set to load
리턴 System

GetImplicitResourceKeys() 공개 메소드

Called when an ASP.NET Page is compiled asking for a collection of keys that match a given control name (keyPrefix). This routine for example returns control.Text,control.ToolTip from the Resource collection if they exist when a request for "control" is made as the key prefix.
public GetImplicitResourceKeys ( string keyPrefix ) : ICollection
keyPrefix string
리턴 ICollection

GetObject() 공개 메소드

Returns an Implicit key value from the ResourceSet. Note this method is called only if a ResourceKey was found in the ResourceSet at load time. If a resource cannot be located this method is never called to retrieve it. IOW, GetImplicitResourceKeys determines which keys are actually retrievable. This method simply parses the Implicit key and then retrieves the value using standard GetObject logic for the ResourceID.
public GetObject ( System.Web.Compilation.ImplicitResourceKey implicitKey, CultureInfo culture ) : object
implicitKey System.Web.Compilation.ImplicitResourceKey
culture System.Globalization.CultureInfo
리턴 object

프로퍼티 상세

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

public static bool ProviderLoaded
리턴 bool