C# Class DRMFSS.Shared.DBResourceProvider

Resource provider accessing resources from the database. This type is thread safe.
Inheritance: DisposableBaseType, IResourceProvider
Show file Open project: edgecomputing/cats-hub-module

Public Methods

Method Description
DBResourceProvider ( string classKey ) : System

Constructs this instance of the provider supplying a resource type for the instance.

GetObject ( string resourceKey, System culture ) : object

Retrieves a resource entry based on the specified culture and resource key. The resource type is based on this instance of the DBResourceProvider as passed to the constructor. To optimize performance, this function caches values in a dictionary per culture.

Protected Methods

Method Description
Cleanup ( ) : void

Method Details

Cleanup() protected method

protected Cleanup ( ) : void
return void

DBResourceProvider() public method

Constructs this instance of the provider supplying a resource type for the instance.
public DBResourceProvider ( string classKey ) : System
classKey string
return System

GetObject() public method

Retrieves a resource entry based on the specified culture and resource key. The resource type is based on this instance of the DBResourceProvider as passed to the constructor. To optimize performance, this function caches values in a dictionary per culture.
public GetObject ( string resourceKey, System culture ) : object
resourceKey string The resource key to find.
culture System The culture to search with.
return object