Exemple #1
0
 private Observe <WebResponse> WebRequestAsync(Uri address, bool noCache)
 {
     return(Observe.Using(
                () => this.CreateRequest(address, noCache),
                r =>
     {
         Debug.WriteLine("GET " + address.OriginalString);
         return Observe.FromAsyncPattern(r.BeginGetResponse, r.EndGetResponse)();
     }));
 }