Exemple #1
0
        //The fetch operation is assumed to be slow, so it runs asynchronously.
        public void Fetch()
        {
            RequestState state = new RequestState(HttpWebRequest.Create(Uri));

            state.Request.BeginGetResponse(OnGetResponse, state);
        }
Exemple #2
0
 //The fetch operation is assumed to be slow, so it runs asynchronously.
 public void Fetch()
 {
     RequestState state = new RequestState(HttpWebRequest.Create(Uri));
     state.Request.BeginGetResponse(OnGetResponse, state);
 }