2002-07-25 Tim Coleman <tim@timcoleman.com>
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / WebClientAsyncResult.cs
1 // \r
2 // System.Web.Services.Protocols.WebClientAsyncResult.cs\r
3 //\r
4 // Author:\r
5 //   Tim Coleman (tim@timcoleman.com)\r
6 //\r
7 // Copyright (C) Tim Coleman, 2002\r
8 //\r
9 \r
10 using System.Net;\r
11 using System.Threading;\r
12 \r
13 namespace System.Web.Services.Protocols {\r
14         public class WebClientAsyncResult : IAsyncResult {\r
15 \r
16                 #region Fields\r
17 \r
18                 WaitHandle waitHandle;\r
19 \r
20                 WebClientProtocol protocol;\r
21                 WebRequest request;\r
22                 AsyncCallback callback;\r
23                 object asyncState;\r
24 \r
25                 #endregion // Fields\r
26 \r
27                 #region Constructors \r
28 \r
29                 [MonoTODO ("Figure out what this does.")]\r
30                 internal WebClientAsyncResult (WebClientProtocol protocol, object x, WebRequest request, AsyncCallback callback, object asyncState, int y)\r
31                 {\r
32                         this.protocol = protocol;\r
33                         this.request = request;\r
34                         this.callback = callback; \r
35                         this.asyncState = asyncState;\r
36                 }\r
37 \r
38                 #endregion // Constructors\r
39 \r
40                 #region Properties\r
41 \r
42                 public object AsyncState {\r
43                         get { return asyncState; }\r
44                 }\r
45 \r
46                 public WaitHandle AsyncWaitHandle {\r
47                         get { return waitHandle; }\r
48                 }\r
49 \r
50                 public bool CompletedSynchronously {\r
51                         [MonoTODO]\r
52                         get { throw new NotImplementedException (); }\r
53                 }\r
54 \r
55                 public bool IsCompleted {\r
56                         [MonoTODO]\r
57                         get { throw new NotImplementedException (); }\r
58                 }\r
59 \r
60                 #endregion // Properties\r
61 \r
62                 #region Methods\r
63 \r
64                 public void Abort ()\r
65                 {\r
66                         request.Abort ();\r
67                 }\r
68 \r
69                 #endregion // Methods\r
70         }\r
71 }\r