Пример #1
0
 public System.IAsyncResult BeginDoWork(FileSilverlightApplication.FileServiceReference.DoWorkRequest request, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = request;
     System.IAsyncResult _result = base.BeginInvoke("DoWork", _args, callback, asyncState);
     return(_result);
 }
Пример #2
0
 public void DoWorkAsync(FileSilverlightApplication.FileServiceReference.DoWorkRequest request, object userState)
 {
     if ((this.onBeginDoWorkDelegate == null))
     {
         this.onBeginDoWorkDelegate = new BeginOperationDelegate(this.OnBeginDoWork);
     }
     if ((this.onEndDoWorkDelegate == null))
     {
         this.onEndDoWorkDelegate = new EndOperationDelegate(this.OnEndDoWork);
     }
     if ((this.onDoWorkCompletedDelegate == null))
     {
         this.onDoWorkCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDoWorkCompleted);
     }
     base.InvokeAsync(this.onBeginDoWorkDelegate, new object[] {
         request
     }, this.onEndDoWorkDelegate, this.onDoWorkCompletedDelegate, userState);
 }
Пример #3
0
 private System.IAsyncResult OnBeginDoWork(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     FileSilverlightApplication.FileServiceReference.DoWorkRequest request = ((FileSilverlightApplication.FileServiceReference.DoWorkRequest)(inValues[0]));
     return(((FileSilverlightApplication.FileServiceReference.IFileService)(this)).BeginDoWork(request, callback, asyncState));
 }
Пример #4
0
 public void DoWorkAsync(FileSilverlightApplication.FileServiceReference.DoWorkRequest request)
 {
     this.DoWorkAsync(request, null);
 }
Пример #5
0
 System.IAsyncResult FileSilverlightApplication.FileServiceReference.IFileService.BeginDoWork(FileSilverlightApplication.FileServiceReference.DoWorkRequest request, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginDoWork(request, callback, asyncState));
 }