Пример #1
0
 public System.IAsyncResult BeginTranslate(SilverlightApplication1.BingTranslatorService.TranslateRequest request, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = request;
     System.IAsyncResult _result = base.BeginInvoke("Translate", _args, callback, asyncState);
     return(_result);
 }
Пример #2
0
 public void TranslateAsync(SilverlightApplication1.BingTranslatorService.TranslateRequest request, object userState)
 {
     if ((this.onBeginTranslateDelegate == null))
     {
         this.onBeginTranslateDelegate = new BeginOperationDelegate(this.OnBeginTranslate);
     }
     if ((this.onEndTranslateDelegate == null))
     {
         this.onEndTranslateDelegate = new EndOperationDelegate(this.OnEndTranslate);
     }
     if ((this.onTranslateCompletedDelegate == null))
     {
         this.onTranslateCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnTranslateCompleted);
     }
     base.InvokeAsync(this.onBeginTranslateDelegate, new object[] {
         request
     }, this.onEndTranslateDelegate, this.onTranslateCompletedDelegate, userState);
 }
Пример #3
0
 private System.IAsyncResult OnBeginTranslate(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     SilverlightApplication1.BingTranslatorService.TranslateRequest request = ((SilverlightApplication1.BingTranslatorService.TranslateRequest)(inValues[0]));
     return(((SilverlightApplication1.BingTranslatorService.LanguageService)(this)).BeginTranslate(request, callback, asyncState));
 }
Пример #4
0
 public void TranslateAsync(SilverlightApplication1.BingTranslatorService.TranslateRequest request)
 {
     this.TranslateAsync(request, null);
 }
Пример #5
0
 System.IAsyncResult SilverlightApplication1.BingTranslatorService.LanguageService.BeginTranslate(SilverlightApplication1.BingTranslatorService.TranslateRequest request, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginTranslate(request, callback, asyncState));
 }