Exemplo n.º 1
0
 /// <summary>
 /// Sends the message for translation.
 /// </summary>
 /// <param name="context"></param>
 private void DoTranslate(MessageContext context)
 {
     //calls the translation service
     languageService.BeginTranslate(AppID, context.OriginalMessage, context.SourceLanguage, context.TargetLanguage, this.OnTranslateResponse, context);
 }
Exemplo n.º 2
0
 public static IAsyncResult BeginTranslateToGerman(this LanguageService Client, string Text, AsyncCallback Callback, object Context)
 {
     return(Client.BeginTranslate(new TranslateRequest(AppId, Text, "en", "de"), Callback, Context));
 }