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); }
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); }
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)); }
public void TranslateAsync(SilverlightApplication1.BingTranslatorService.TranslateRequest request) { this.TranslateAsync(request, null); }
System.IAsyncResult SilverlightApplication1.BingTranslatorService.LanguageService.BeginTranslate(SilverlightApplication1.BingTranslatorService.TranslateRequest request, System.AsyncCallback callback, object asyncState) { return(base.Channel.BeginTranslate(request, callback, asyncState)); }