Пример #1
0
 public async Task <string> GetDefaultText(TextFragment fragment)
 {
     return(await Task.FromResult(GetDefaultTextSync(fragment)));
 }
Пример #2
0
 public async Task <string> GetLanguageText(int lcid, TextFragment fragment)
 {
     return(await Task.FromResult(GetLanguageTextSync(lcid, fragment)));
 }
Пример #3
0
 /// <summary>
 /// 获取文本片段的默认输出(同步)
 /// </summary>
 /// <param name="fragment"></param>
 /// <returns></returns>
 public static string GetDefaultTextSync(this TextFragment fragment)
 {
     return(_textFragmentServiceFactory.Create().GetDefaultTextSync(fragment));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }