Exemplo n.º 1
0
 public async Task <string> GetDefaultText(TextFragment fragment)
 {
     return(await Task.FromResult(GetDefaultTextSync(fragment)));
 }
Exemplo n.º 2
0
 public async Task <string> GetLanguageText(int lcid, TextFragment fragment)
 {
     return(await Task.FromResult(GetLanguageTextSync(lcid, fragment)));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 获取文本片段的默认输出(同步)
 /// </summary>
 /// <param name="fragment"></param>
 /// <returns></returns>
 public static string GetDefaultTextSync(this TextFragment fragment)
 {
     return(_textFragmentServiceFactory.Create().GetDefaultTextSync(fragment));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获取文本片段的默认输出
 /// </summary>
 /// <param name="fragment"></param>
 /// <returns></returns>
 public static async Task <string> GetDefaultText(this TextFragment fragment)
 {
     return(await _textFragmentServiceFactory.Create().GetDefaultText(fragment));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 获取文本片段在指定语言编码下的输出(同步)
 /// </summary>
 /// <param name="fragment"></param>
 /// <param name="lcid"></param>
 /// <returns></returns>
 public static string GetLanguageTextSync(this TextFragment fragment, int lcid)
 {
     return(_textFragmentServiceFactory.Create().GetLanguageTextSync(lcid, fragment));
 }
Exemplo n.º 6
0
 /// <summary>
 /// 获取文本片段在指定语言编码下的输出
 /// </summary>
 /// <param name="fragment"></param>
 /// <param name="lcid"></param>
 /// <returns></returns>
 public static async Task <string> GetLanguageText(this TextFragment fragment, int lcid)
 {
     return(await _textFragmentServiceFactory.Create().GetLanguageText(lcid, fragment));
 }