C# 클래스 Frapid.i18n.ResourceManager

파일 보기 프로젝트 열기: frapid/frapid

공개 메소드들

메소드 설명
GetString ( string tenant, string resourceClass, string resourceKey, string cultureCode = null ) : string

Gets the localized resource.

TryGetResourceFromCache ( string tenant, string resourceClass, string resourceKey, string cultureCode = null ) : string

Get the localized resource without throwing an exception if the resource is not found.

비공개 메소드들

메소드 설명
GetCache ( string tenant ) : string>.IDictionary
GetCulture ( string cultureCode ) : CultureInfo
InitializeResourcesAsync ( string tenant ) : System.Threading.Tasks.Task

메소드 상세

GetString() 공개 정적인 메소드

Gets the localized resource.
Thrown when the resource key is not found on the specified class.
public static GetString ( string tenant, string resourceClass, string resourceKey, string cultureCode = null ) : string
tenant string The name of the database or tenant.
resourceClass string The name of the resource class.
resourceKey string The resource key.
cultureCode string /// The culture of the resource. /// If this optional parameter is left empty, the current culture will be used. ///
리턴 string

TryGetResourceFromCache() 공개 정적인 메소드

Get the localized resource without throwing an exception if the resource is not found.
public static TryGetResourceFromCache ( string tenant, string resourceClass, string resourceKey, string cultureCode = null ) : string
tenant string The name of the current tenant or database.
resourceClass string The name of the resource class.
resourceKey string The resource key.
cultureCode string /// The culture of the resource. /// If this optional parameter is left empty, the current culture will be used. ///
리턴 string