Beispiel #1
0
 public System.IAsyncResult BeginUploadFile(FileSilverlightApplication.FileServiceReference.UploadFileRequest request, System.AsyncCallback callback, object asyncState)
 {
     object[] _args = new object[1];
     _args[0] = request;
     System.IAsyncResult _result = base.BeginInvoke("UploadFile", _args, callback, asyncState);
     return(_result);
 }
Beispiel #2
0
 public void UploadFileAsync(FileSilverlightApplication.FileServiceReference.UploadFileRequest request, object userState)
 {
     if ((this.onBeginUploadFileDelegate == null))
     {
         this.onBeginUploadFileDelegate = new BeginOperationDelegate(this.OnBeginUploadFile);
     }
     if ((this.onEndUploadFileDelegate == null))
     {
         this.onEndUploadFileDelegate = new EndOperationDelegate(this.OnEndUploadFile);
     }
     if ((this.onUploadFileCompletedDelegate == null))
     {
         this.onUploadFileCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnUploadFileCompleted);
     }
     base.InvokeAsync(this.onBeginUploadFileDelegate, new object[] {
         request
     }, this.onEndUploadFileDelegate, this.onUploadFileCompletedDelegate, userState);
 }
Beispiel #3
0
 private System.IAsyncResult OnBeginUploadFile(object[] inValues, System.AsyncCallback callback, object asyncState)
 {
     FileSilverlightApplication.FileServiceReference.UploadFileRequest request = ((FileSilverlightApplication.FileServiceReference.UploadFileRequest)(inValues[0]));
     return(((FileSilverlightApplication.FileServiceReference.IFileService)(this)).BeginUploadFile(request, callback, asyncState));
 }
Beispiel #4
0
 public void UploadFileAsync(FileSilverlightApplication.FileServiceReference.UploadFileRequest request)
 {
     this.UploadFileAsync(request, null);
 }
Beispiel #5
0
 System.IAsyncResult FileSilverlightApplication.FileServiceReference.IFileService.BeginUploadFile(FileSilverlightApplication.FileServiceReference.UploadFileRequest request, System.AsyncCallback callback, object asyncState)
 {
     return(base.Channel.BeginUploadFile(request, callback, asyncState));
 }