private void WebClient_Completed(object sender, UploadValuesCompletedEventArgs e) { WebServiceQueueRequestCompletedArgs e1 = new WebServiceQueueRequestCompletedArgs(e, this._currentRequest); e1.DequeueRequest = e.Error == null && !e.Cancelled; this.OnCompleted(e1); if (e1.DequeueRequest) { this.Requests.Dequeue(); } this._intervalCouter.Restart(); }
private void OnCompleted(WebServiceQueueRequestCompletedArgs e) { // ISSUE: reference to a compiler-generated field if (this.Completed == null) { return; } if (this._synchronizationContext == SynchronizationContext.Current) { // ISSUE: reference to a compiler-generated field this.Completed((object)this, e); } else { // ISSUE: reference to a compiler-generated field this._synchronizationContext.Post((SendOrPostCallback)(p => this.Completed((object)this, e)), (object)null); } }