code_junkie

How can I know on the client side when the HTTP handler is done processing?

Nov 11th, 2011
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. WebClient client = new WebClient();
  2. client.OpenWriteCompleted += (sender, e) =>
  3. {
  4. PushData(data, e.Result);
  5. e.Result.Close();
  6. data.Close();
  7. };
  8. client.OpenWriteAsync(handlerUri);
Add Comment
Please, Sign In to add comment