2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.Messaging / System.Messaging / MessageEnumerator.cs
1 //\r
2 // System.Messaging\r
3 //\r
4 // Authors:\r
5 //      Peter Van Isacker (sclytrack@planetinternet.be)\r
6 //\r
7 // (C) 2003 Peter Van Isacker\r
8 //\r
9
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 \r
31 using System;\r
32 using System.Collections;\r
33 \r
34 namespace System.Messaging \r
35 {\r
36         public class MessageEnumerator: MarshalByRefObject, IEnumerator, IDisposable \r
37         {\r
38                 [MonoTODO]\r
39                 internal MessageEnumerator (MessageQueue owner)\r
40                 {\r
41                 }\r
42 \r
43                 public Message Current {                \r
44                         [MonoTODO]\r
45                         get {throw new NotImplementedException();}\r
46                 }\r
47                 object IEnumerator.Current {\r
48                         [MonoTODO]\r
49                         get {throw new NotImplementedException();}\r
50                 }\r
51                 public IntPtr CursorHandle {\r
52                         [MonoTODO]\r
53                         get {throw new NotImplementedException();}\r
54                 }\r
55                 [MonoTODO]\r
56                 public void Close()\r
57                 {\r
58                         throw new NotImplementedException();\r
59                 }\r
60 \r
61                 public void Dispose()\r
62                 {\r
63                         Dispose (true);\r
64                         GC.SuppressFinalize (this);\r
65                 }\r
66 \r
67                 protected virtual void Dispose(bool disposing)\r
68                 {\r
69                         Close();\r
70                 }\r
71 \r
72                 [MonoTODO]\r
73                 public bool MoveNext()\r
74                 {\r
75                         throw new NotImplementedException();\r
76                 }\r
77                 [MonoTODO]\r
78                 public bool MoveNext(TimeSpan timeout)\r
79                 {\r
80                         throw new NotImplementedException();\r
81                 }\r
82                 [MonoTODO]\r
83                 public Message RemoveCurrent()\r
84                 {\r
85                         throw new NotImplementedException();\r
86                 }\r
87                 [MonoTODO]\r
88                 public Message RemoveCurrent(MessageQueueTransaction transaction)\r
89                 {\r
90                         throw new NotImplementedException();\r
91                 }\r
92                 [MonoTODO]\r
93                 public Message RemoveCurrent(MessageQueueTransactionType transactionType)\r
94                 {\r
95                         throw new NotImplementedException();\r
96                 }\r
97                 [MonoTODO]\r
98                 public Message RemoveCurrent(TimeSpan timeout)\r
99                 {\r
100                         throw new NotImplementedException();\r
101                 }\r
102                 [MonoTODO]\r
103                 public Message RemoveCurrent(TimeSpan timeout, MessageQueueTransaction transaction)\r
104                 {\r
105                         throw new NotImplementedException();\r
106                 }\r
107                 [MonoTODO]\r
108                 public Message RemoveCurrent(TimeSpan timeout, MessageQueueTransactionType transactionType)\r
109                 {\r
110                         throw new NotImplementedException();\r
111                 }\r
112                 [MonoTODO]\r
113                 public void Reset()\r
114                 {\r
115                         Close ();\r
116                 }\r
117 \r
118                 [MonoTODO]\r
119                 ~MessageEnumerator()\r
120                 {\r
121                         Dispose(false);\r
122                 }\r
123         }\r
124 }\r