Ejemplo n.º 1
0
 public System.IAsyncResult BeginDetect(PhoneTranslator.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);
 }
Ejemplo n.º 2
0
 public void DetectAsync(PhoneTranslator.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);
 }
Ejemplo n.º 3
0
 private System.IAsyncResult OnBeginDetect(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     PhoneTranslator.BingTranslatorService.DetectRequest request = ((PhoneTranslator.BingTranslatorService.DetectRequest)(inValues[0]));
     return(((PhoneTranslator.BingTranslatorService.LanguageService)(this)).BeginDetect(request, callback, asyncState));
 }
Ejemplo n.º 4
0
 public void DetectAsync(PhoneTranslator.BingTranslatorService.DetectRequest request)
 {
     this.DetectAsync(request, null);
 }
Ejemplo n.º 5
0
 System.IAsyncResult PhoneTranslator.BingTranslatorService.LanguageService.BeginDetect(PhoneTranslator.BingTranslatorService.DetectRequest request, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginDetect(request, callback, asyncState));
 }