Esempio n. 1
0
 public System.IAsyncResult BeginDetect(SilverlightApplication1.BingTranslatorService.DetectRequest request, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = request;
     System.IAsyncResult _result = base.BeginInvoke("Detect", _args, callback, asyncState);
     return(_result);
 }
Esempio n. 2
0
 public void DetectAsync(SilverlightApplication1.BingTranslatorService.DetectRequest request, object userState)
 {
     if ((this.onBeginDetectDelegate == null))
     {
         this.onBeginDetectDelegate = new BeginOperationDelegate(this.OnBeginDetect);
     }
     if ((this.onEndDetectDelegate == null))
     {
         this.onEndDetectDelegate = new EndOperationDelegate(this.OnEndDetect);
     }
     if ((this.onDetectCompletedDelegate == null))
     {
         this.onDetectCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDetectCompleted);
     }
     base.InvokeAsync(this.onBeginDetectDelegate, new object[] {
         request
     }, this.onEndDetectDelegate, this.onDetectCompletedDelegate, userState);
 }
Esempio n. 3
0
 private System.IAsyncResult OnBeginDetect(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     SilverlightApplication1.BingTranslatorService.DetectRequest request = ((SilverlightApplication1.BingTranslatorService.DetectRequest)(inValues[0]));
     return(((SilverlightApplication1.BingTranslatorService.LanguageService)(this)).BeginDetect(request, callback, asyncState));
 }
Esempio n. 4
0
 public void DetectAsync(SilverlightApplication1.BingTranslatorService.DetectRequest request)
 {
     this.DetectAsync(request, null);
 }
Esempio n. 5
0
 System.IAsyncResult SilverlightApplication1.BingTranslatorService.LanguageService.BeginDetect(SilverlightApplication1.BingTranslatorService.DetectRequest request, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginDetect(request, callback, asyncState));
 }