C# 클래스 Opc.Ua.Server.ResourceManager

An object that manages access to localized resources.
상속: IDisposable, ITranslationManager
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
Add ( XmlQualifiedName symbolicId, string locale, string text ) : void

Adds the translations to the resource manager.

Add ( string locale, string>.IDictionary translations ) : void

Adds the translations to the resource manager.

Add ( string key, string locale, string text ) : void

Adds a translation to the resource manager.

Add ( uint statusCode, string locale, string text ) : void

Adds the translations to the resource manager.

Dispose ( ) : void

May be called by the application to clean up resources.

GetAvailableLocales ( ) : string[]

Returns the locales supported by the resource manager.

LoadDefaultText ( ) : void

Uses reflection to load default text for standard StatusCodes.

ResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : System

Initializes the resource manager with the server instance that owns it.

Translate ( IList preferredLocales, LocalizedText text ) : LocalizedText
Translate ( IList preferredLocales, string key, string text ) : LocalizedText
Translate ( IList preferredLocales, ServiceResult result ) : ServiceResult

Translates a service result.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Cleans up all resources held by the object.

Translate ( IList preferredLocales, LocalizedText defaultText, TranslationInfo info ) : LocalizedText

Translates the text provided.

비공개 메소드들

메소드 설명
FindBestTranslation ( IList preferredLocales, string key, CultureInfo &culture ) : string

Finds the best translation for the requested locales.

GetAvailableLocales ( IEnumerable preferredLocales ) : string[]
GetTable ( string locale ) : TranslationTable

Finds the translation table for the locale. Creates a new table if it does not exist.

GetText ( IList preferredLocales, string textId, string defaultText ) : LocalizedText
GetTextForLocale ( string locale, string textId, string defaultText ) : string
TranslateStatusCode ( IList preferredLocales, StatusCode statusCode, object args ) : LocalizedText

Translates a status code.

TranslateSymbolicId ( IList preferredLocales, string symbolicId, string namespaceUri, object args ) : LocalizedText

Translates a symbolic id.

메소드 상세

Add() 공개 메소드

Adds the translations to the resource manager.
public Add ( XmlQualifiedName symbolicId, string locale, string text ) : void
symbolicId System.Xml.XmlQualifiedName
locale string
text string
리턴 void

Add() 공개 메소드

Adds the translations to the resource manager.
public Add ( string locale, string>.IDictionary translations ) : void
locale string
translations string>.IDictionary
리턴 void

Add() 공개 메소드

Adds a translation to the resource manager.
public Add ( string key, string locale, string text ) : void
key string
locale string
text string
리턴 void

Add() 공개 메소드

Adds the translations to the resource manager.
public Add ( uint statusCode, string locale, string text ) : void
statusCode uint
locale string
text string
리턴 void

Dispose() 공개 메소드

May be called by the application to clean up resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Cleans up all resources held by the object.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetAvailableLocales() 공개 메소드

Returns the locales supported by the resource manager.
public GetAvailableLocales ( ) : string[]
리턴 string[]

LoadDefaultText() 공개 메소드

Uses reflection to load default text for standard StatusCodes.
public LoadDefaultText ( ) : void
리턴 void

ResourceManager() 공개 메소드

Initializes the resource manager with the server instance that owns it.
public ResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : System
server IServerInternal
configuration ApplicationConfiguration
리턴 System

Translate() 공개 메소드

public Translate ( IList preferredLocales, LocalizedText text ) : LocalizedText
preferredLocales IList
text LocalizedText
리턴 LocalizedText

Translate() 보호된 메소드

Translates the text provided.
protected Translate ( IList preferredLocales, LocalizedText defaultText, TranslationInfo info ) : LocalizedText
preferredLocales IList
defaultText LocalizedText
info TranslationInfo
리턴 LocalizedText

Translate() 공개 메소드

public Translate ( IList preferredLocales, string key, string text ) : LocalizedText
preferredLocales IList
key string
text string
리턴 LocalizedText

Translate() 공개 메소드

Translates a service result.
public Translate ( IList preferredLocales, ServiceResult result ) : ServiceResult
preferredLocales IList
result ServiceResult
리턴 ServiceResult