Removed debugging CWL that shows during normal execution.
[mono.git] / mcs / class / System.Messaging / System.Messaging / MessageQueue.cs
1 //\r
2 // System.Messaging\r
3 //\r
4 // Authors:\r
5 //      Peter Van Isacker (sclytrack@planetinternet.be)\r
6 //      Rafael Teixeira   (rafaelteixeirabr@hotmail.com)\r
7 //\r
8 // (C) 2003 Peter Van Isacker\r
9 //\r
10
11 //
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 // 
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 // 
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 //
31 \r
32 using System;\r
33 using System.Collections;\r
34 using System.ComponentModel;\r
35 using System.Drawing;\r
36 using System.Messaging.Design;\r
37 \r
38 namespace System.Messaging\r
39 {\r
40         [TypeConverter (typeof(MessageQueueConverter))]\r
41         [Editor ("System.Messaging.Design.QueuePathEditor", "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]\r
42         [Designer ("Microsoft.VisualStudio.Install.MessageQueueInstallableComponentDesigner, " + Consts.AssemblyMicrosoft_VisualStudio)]\r
43         [InstallerType (typeof(MessageQueueInstaller))]\r
44         [DefaultEvent ("ReceiveCompleted")]\r
45         public class MessageQueue : Component, IEnumerable\r
46         {\r
47                 #region Fields\r
48 \r
49                 public static readonly long InfiniteQueueSize;\r
50                 public static readonly TimeSpan InfiniteTimeout;\r
51 \r
52                 private bool isPrivate = false;\r
53                 private string queueName;\r
54                 private string machineName;\r
55 \r
56 \r
57                 #endregion //Fields\r
58 \r
59 \r
60                 #region Constructor\r
61 \r
62                 [MonoTODO]\r
63                 public MessageQueue ()\r
64                 {\r
65                         throw new NotImplementedException ();\r
66                 }\r
67 \r
68                 [MonoTODO]\r
69                 public MessageQueue (string path) {\r
70                         this.Path = path;\r
71                         this.isPrivate = false;\r
72                 }\r
73 \r
74                 [MonoTODO]\r
75                 private MessageQueue (string queueName, string machineName, bool isPrivate) \r
76                 {\r
77                         this.queueName = queueName;\r
78                         this.machineName = machineName;\r
79                         this.isPrivate = isPrivate;\r
80                 }\r
81 \r
82                 [MonoTODO]\r
83                 public MessageQueue (string path, bool sharedModeDenyReceive) \r
84                 {\r
85                         throw new NotImplementedException ();\r
86                 }\r
87 \r
88                 #endregion //Constructor\r
89 \r
90                 #region Properties\r
91 \r
92                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
93                 [MessagingDescription ("MQ_Authenticate")]\r
94                 public bool Authenticate {\r
95                         [MonoTODO]\r
96                         get {\r
97                                 throw new NotImplementedException ();\r
98                         }\r
99                         [MonoTODO]\r
100                         set {\r
101                                 throw new NotImplementedException ();\r
102                         }\r
103                 }\r
104 \r
105                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
106                 [MessagingDescription ("MQ_BasePriority")]\r
107                 public short BasePriority {\r
108                         [MonoTODO]\r
109                         get {\r
110                                 throw new NotImplementedException ();\r
111                         }\r
112                         [MonoTODO]\r
113                         set {\r
114                                 throw new NotImplementedException ();\r
115                         }\r
116                 }\r
117 \r
118                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
119                 [Browsable (false)]\r
120                 [MessagingDescription ("MQ_CanRead")]\r
121                 public bool CanRead {\r
122                         [MonoTODO]\r
123                         get {\r
124                                 throw new NotImplementedException ();\r
125                         }\r
126                 }\r
127 \r
128                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
129                 [Browsable (false)]\r
130                 [MessagingDescription ("MQ_CanWrite")]\r
131                 public bool CanWrite {\r
132                         [MonoTODO]\r
133                         get {\r
134                                 throw new NotImplementedException ();\r
135                         }\r
136                 }\r
137 \r
138                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
139                 [MessagingDescription ("MQ_Category")]\r
140                 public Guid Category {\r
141                         [MonoTODO]\r
142                         get {\r
143                                 throw new NotImplementedException ();\r
144                         }\r
145                         [MonoTODO]\r
146                         set {\r
147                                 throw new NotImplementedException ();\r
148                         }\r
149                 }\r
150 \r
151                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
152                 [MessagingDescription ("MQ_CreateTime")]\r
153                 public DateTime CreateTime {\r
154                         [MonoTODO]\r
155                         get {\r
156                                 throw new NotImplementedException ();\r
157                         }\r
158                 }\r
159 \r
160                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]\r
161                 [Browsable (false)]\r
162                 [MessagingDescription ("MQ_DefaultPropertiesToSend")]\r
163                 public DefaultPropertiesToSend DefaultPropertiesToSend {\r
164                         [MonoTODO]\r
165                         get {\r
166                                 throw new NotImplementedException ();\r
167                         }\r
168                         [MonoTODO]\r
169                         set {\r
170                                 throw new NotImplementedException ();\r
171                         }\r
172                 }\r
173 \r
174                 [Browsable (false)]\r
175                 [DefaultValue (false)]\r
176                 [MessagingDescription ("MQ_DenySharedReceive")]\r
177                 public bool DenySharedReceive {\r
178                         [MonoTODO]\r
179                         get {\r
180                                 throw new NotImplementedException ();\r
181                         }\r
182                         [MonoTODO]\r
183                         set {\r
184                                 throw new NotImplementedException ();\r
185                         }\r
186                 }\r
187 \r
188                 [Browsable (false)]\r
189                 public static bool EnableConnectionCache {\r
190                         [MonoTODO]\r
191                         get {\r
192                                 throw new NotImplementedException ();\r
193                         }\r
194                         [MonoTODO]\r
195                         set {\r
196                                 throw new NotImplementedException ();\r
197                         }\r
198                 }\r
199 \r
200                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
201                 [MessagingDescription ("MQ_EncryptionRequired")]\r
202                 public EncryptionRequired EncryptionRequired {\r
203                         [MonoTODO]\r
204                         get {\r
205                                 throw new NotImplementedException ();\r
206                         }\r
207                         [MonoTODO]\r
208                         set {\r
209                                 throw new NotImplementedException ();\r
210                         }\r
211                 }\r
212 \r
213                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
214                 [MessagingDescription ("MQ_FormatName")]\r
215                 public string FormatName {\r
216                         [MonoTODO]\r
217                         get {\r
218                                 throw new NotImplementedException ();\r
219                         }\r
220                 }\r
221 \r
222                 [Browsable (false)]\r
223                 [DefaultValue (null)]\r
224                 [TypeConverter (typeof(MessageFormatterConverter))]\r
225                 [MessagingDescription ("MQ_Formatter")]\r
226                 public IMessageFormatter Formatter {\r
227                         [MonoTODO]\r
228                         get {\r
229                                 throw new NotImplementedException ();\r
230                         }\r
231                         [MonoTODO]\r
232                         set {\r
233                                 throw new NotImplementedException ();\r
234                         }\r
235                 }\r
236 \r
237                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
238                 [MessagingDescription ("MQ_GuidId")]\r
239                 public Guid Id {\r
240                         [MonoTODO]\r
241                         get {\r
242                                 throw new NotImplementedException ();\r
243                         }\r
244                 }\r
245 \r
246                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
247                 [MessagingDescription ("MQ_Label")]\r
248                 public string Label {\r
249                         [MonoTODO]\r
250                         get {\r
251                                 throw new NotImplementedException ();\r
252                         }\r
253                         [MonoTODO]\r
254                         set {\r
255                                 throw new NotImplementedException ();\r
256                         }\r
257                 }\r
258 \r
259                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
260                 [MessagingDescription ("MQ_LastModifyTime")]\r
261                 public DateTime LastModifyTime {\r
262                         [MonoTODO]\r
263                         get {\r
264                                 throw new NotImplementedException ();\r
265                         }\r
266                 }\r
267 \r
268                 [Browsable (false)]\r
269                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
270                 [MessagingDescription ("MQ_MachineName")]\r
271                 public string MachineName {\r
272                         get {\r
273                                 return machineName;\r
274                         }\r
275                         set {\r
276                                 machineName = value;\r
277                         }\r
278                 }\r
279 \r
280                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
281                 [TypeConverter (typeof(SizeConverter))]\r
282                 [MessagingDescription ("MQ_MaximumJournalSize")]\r
283                 public long MaximumJournalSize {\r
284                         [MonoTODO]\r
285                         get {\r
286                                 throw new NotImplementedException ();\r
287                         }\r
288                         [MonoTODO]\r
289                         set {\r
290                                 throw new NotImplementedException ();\r
291                         }\r
292                 }\r
293 \r
294                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
295                 [TypeConverter (typeof(SizeConverter))]\r
296                 [MessagingDescription ("MQ_MaximumQueueSize")]\r
297                 public long MaximumQueueSize {\r
298                         [MonoTODO]\r
299                         get {\r
300                                 throw new NotImplementedException ();\r
301                         }\r
302                         [MonoTODO]\r
303                         set {\r
304                                 throw new NotImplementedException ();\r
305                         }\r
306                 }\r
307 \r
308                 [Browsable (false)]\r
309                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]\r
310                 [MessagingDescription ("MQ_MessageReadPropertyFilter")]\r
311                 public MessagePropertyFilter MessageReadPropertyFilter {\r
312                         [MonoTODO]\r
313                         get {\r
314                                 throw new NotImplementedException ();\r
315                         }\r
316                         [MonoTODO]\r
317                         set {\r
318                                 throw new NotImplementedException ();\r
319                         }\r
320                 }\r
321 \r
322                 [RecommendedAsConfigurable (true)]\r
323                 [Editor ("System.Messaging.Design.QueuePathEditor", "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]\r
324                 [Browsable (false)]\r
325                 [DefaultValue ("")]\r
326                 [TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]\r
327                 [MessagingDescription ("MQ_Path")]\r
328                 public string Path {\r
329                         get {\r
330                                 return machineName + ":" + queueName;\r
331                         }\r
332                         [MonoTODO ("split input")]\r
333                         set {\r
334                                 throw new NotImplementedException ();\r
335                         }\r
336                 }\r
337 \r
338                 [Browsable (false)]\r
339                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
340                 [MessagingDescription ("MQ_QueueName")]\r
341                 public string QueueName {\r
342                         get {\r
343                                 return queueName;\r
344                         }\r
345                         set {\r
346                                 queueName = value;\r
347                         }\r
348                 }\r
349 \r
350                 [Browsable (false)]\r
351                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
352                 [MessagingDescription ("MQ_ReadHandle")]\r
353                 public IntPtr ReadHandle {\r
354                         [MonoTODO]\r
355                         get {\r
356                                 throw new NotImplementedException ();\r
357                         }\r
358                 }\r
359 \r
360                 [Browsable (false)]\r
361                 [DefaultValue (null)]\r
362                 [MessagingDescription ("MQ_SynchronizingObject")]\r
363                 public ISynchronizeInvoke SynchronizingObject {\r
364                         [MonoTODO]\r
365                         get {\r
366                                 throw new NotImplementedException ();\r
367                         }\r
368                         [MonoTODO]\r
369                         set {\r
370                                 throw new NotImplementedException ();\r
371                         }\r
372                 }\r
373 \r
374                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
375                 [MessagingDescription ("MQ_Transactional")]\r
376                 public bool Transactional {\r
377                         [MonoTODO]\r
378                         get {\r
379                                 throw new NotImplementedException ();\r
380                         }\r
381                 }\r
382 \r
383                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
384                 [MessagingDescription ("MQ_WriteHandle")]\r
385                 public bool UseJournalQueue {\r
386                         [MonoTODO]\r
387                         get {\r
388                                 throw new NotImplementedException ();\r
389                         }\r
390                         [MonoTODO]\r
391                         set {\r
392                                 throw new NotImplementedException ();\r
393                         }\r
394                 }\r
395 \r
396                 [Browsable (false)]\r
397                 [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
398                 [MessagingDescription ("MQ_WriteHandle")]\r
399                 public IntPtr WriteHandle {\r
400                         [MonoTODO]\r
401                         get {\r
402                                 throw new NotImplementedException ();\r
403                         }\r
404                 }\r
405 \r
406                 #endregion //Properties\r
407 \r
408                 #region Methods\r
409 \r
410                 [MonoTODO]\r
411                 public IAsyncResult BeginPeek ()\r
412                 {\r
413                         throw new NotImplementedException ();\r
414                 }\r
415                 [MonoTODO]\r
416                 public IAsyncResult BeginPeek (TimeSpan timeout)\r
417                 {\r
418                         throw new NotImplementedException ();\r
419                 }\r
420                 [MonoTODO]\r
421                 public IAsyncResult BeginPeek (TimeSpan timeout, object stateObject)\r
422                 {\r
423                         throw new NotImplementedException ();\r
424                 }\r
425                 [MonoTODO]\r
426                 public IAsyncResult BeginPeek (TimeSpan timeout,\r
427                                                                           object stateObject,\r
428                                                                           AsyncCallback callback)\r
429                 {\r
430                         throw new NotImplementedException ();\r
431                 }\r
432                 [MonoTODO]\r
433                 public IAsyncResult BeginReceive ()\r
434                 {\r
435                         throw new NotImplementedException ();\r
436                 }\r
437                 [MonoTODO]\r
438                 public IAsyncResult BeginReceive (TimeSpan timeout)\r
439                 {\r
440                         throw new NotImplementedException ();\r
441                 }\r
442                 [MonoTODO]\r
443                 public IAsyncResult BeginReceive (TimeSpan timeout, object stateObject)\r
444                 {\r
445                         throw new NotImplementedException ();\r
446                 }\r
447                 [MonoTODO]\r
448                 public IAsyncResult BeginReceive (TimeSpan timeout, object stateObject, AsyncCallback callback)\r
449                 {\r
450                         throw new NotImplementedException ();\r
451                 }\r
452                 [MonoTODO]\r
453                 public static void ClearConnectionCache ()\r
454                 {\r
455                         throw new NotImplementedException ();\r
456                 }\r
457                 [MonoTODO]\r
458                 public void Close ()\r
459                 {\r
460                         throw new NotImplementedException ();\r
461                 }\r
462                 [MonoTODO]\r
463                 public static MessageQueue Create (string path)\r
464                 {\r
465                         throw new NotImplementedException ();\r
466                 }\r
467                 [MonoTODO]\r
468                 public static MessageQueue Create (string path, bool transactional)\r
469                 {\r
470                         throw new NotImplementedException ();\r
471                 }\r
472                 [MonoTODO]\r
473                 public static void Delete (string path)\r
474                 {\r
475                         throw new NotImplementedException ();\r
476                 }\r
477                 [MonoTODO]\r
478                 public Message EndPeek (IAsyncResult asyncResult)\r
479                 {\r
480                         throw new NotImplementedException ();\r
481                 }\r
482                 [MonoTODO]\r
483                 public Message EndReceive (IAsyncResult asyncResult)\r
484                 {\r
485                         throw new NotImplementedException ();\r
486                 }\r
487                 [MonoTODO]\r
488                 public static bool Exists (string path)\r
489                 {\r
490                         throw new NotImplementedException ();\r
491                 }\r
492                 [MonoTODO]\r
493                 public Message[] GetAllMessages ()\r
494                 {\r
495                         throw new NotImplementedException ();\r
496                 }\r
497                 [MonoTODO]\r
498                 public IEnumerator GetEnumerator ()\r
499                 {\r
500                         throw new NotImplementedException ();\r
501                 }\r
502                 [MonoTODO]\r
503                 public static Guid GetMachineId (string machineName)\r
504                 {\r
505                         throw new NotImplementedException ();\r
506                 }\r
507                 [MonoTODO]\r
508                 public MessageEnumerator GetMessageEnumerator ()\r
509                 {\r
510                         throw new NotImplementedException ();\r
511                 }\r
512 \r
513                 private static ArrayList currentQueueList;\r
514 \r
515                 static MessageQueue ()\r
516                 {\r
517                         currentQueueList = new ArrayList ();\r
518                         // for testing purposes\r
519                         currentQueueList.Add (new MessageQueue (@"localhost:\public\TestQueue"));\r
520                         currentQueueList.Add (new MessageQueue (@"\private\AnotherTestQueue", "localhost", true));\r
521                 }\r
522 \r
523                 public static MessageQueueEnumerator GetMessageQueueEnumerator ()\r
524                 {\r
525                         return new MessageQueueEnumerator (currentQueueList);\r
526                 }\r
527 \r
528                 private static ArrayList filteredQueueList (MessageQueueCriteria criteria)\r
529                 {\r
530                         ArrayList list = new ArrayList ();\r
531                         foreach (MessageQueue queue in currentQueueList)\r
532                                 if (criteria.Match (queue.Id, queue.CreateTime, queue.Label, queue.MachineName, queue.LastModifyTime))\r
533                                         list.Add (queue);\r
534                         return list;\r
535                 }\r
536 \r
537                 public static MessageQueueEnumerator GetMessageQueueEnumerator (MessageQueueCriteria criteria)\r
538                 {\r
539                         return new MessageQueueEnumerator (filteredQueueList (criteria));\r
540                 }\r
541 \r
542                 public static MessageQueue[] GetPrivateQueuesByMachine (string machineName)\r
543                 {\r
544                         if (machineName == null || machineName.Length == 0)\r
545                                 throw new ArgumentException ();\r
546                         ArrayList list = new ArrayList ();\r
547                         foreach (MessageQueue queue in currentQueueList)\r
548                                 if (queue.machineName == machineName && queue.isPrivate)\r
549                                         list.Add (queue);\r
550                         return (MessageQueue[]) list.ToArray (typeof(MessageQueue));\r
551                 }\r
552 \r
553                 [MonoTODO]\r
554                 public static MessageQueue[] GetPublicQueues ()\r
555                 {\r
556                         throw new NotImplementedException ();\r
557                 }\r
558                 [MonoTODO]\r
559                 public static MessageQueue[] GetPublicQueues (MessageQueueCriteria criteria)\r
560                 {\r
561                         throw new NotImplementedException ();\r
562                 }\r
563                 [MonoTODO]\r
564                 public static MessageQueue[] GetPublicQueuesByCategory (Guid category)\r
565                 {\r
566                         throw new NotImplementedException ();\r
567                 }\r
568                 [MonoTODO]\r
569                 public static MessageQueue[] GetPublicQueuesByLabel (string label)\r
570                 {\r
571                         throw new NotImplementedException ();\r
572                 }\r
573                 [MonoTODO]\r
574                 public static MessageQueue[] GetPublicQueuesByMachine (string machineName)\r
575                 {\r
576                         throw new NotImplementedException ();\r
577                 }\r
578                 [MonoTODO]\r
579                 public Message Peek ()\r
580                 {\r
581                         throw new NotImplementedException ();\r
582                 }\r
583                 [MonoTODO]\r
584                 public Message Peek (TimeSpan timeout)\r
585                 {\r
586                         throw new NotImplementedException ();\r
587                 }\r
588                 [MonoTODO]\r
589                 public Message PeekByCorrelationId (string correlationId)\r
590                 {\r
591                         throw new NotImplementedException ();\r
592                 }\r
593                 [MonoTODO]\r
594                 public Message PeekByCorrelationId (string correlationId, TimeSpan timeout)\r
595                 {\r
596                         throw new NotImplementedException ();\r
597                 }\r
598                 [MonoTODO]\r
599                 public Message PeekById (string id)\r
600                 {\r
601                         throw new NotImplementedException ();\r
602                 }\r
603                 [MonoTODO]\r
604                 public Message PeekById (string id, TimeSpan timeout)\r
605                 {\r
606                         throw new NotImplementedException ();\r
607                 }\r
608                 [MonoTODO]\r
609                 public void Purge ()\r
610                 {\r
611                         throw new NotImplementedException ();\r
612                 }\r
613                 [MonoTODO]\r
614                 public Message Receive ()\r
615                 {\r
616                         throw new NotImplementedException ();\r
617                 }\r
618                 [MonoTODO]\r
619                 public Message Receive (MessageQueueTransaction transaction)\r
620                 {\r
621                         throw new NotImplementedException ();\r
622                 }\r
623                 [MonoTODO]\r
624                 public Message Receive (MessageQueueTransactionType transactionType)\r
625                 {\r
626                         throw new NotImplementedException ();\r
627                 }\r
628                 [MonoTODO]\r
629                 public Message Receive (TimeSpan timeout)\r
630                 {\r
631                         throw new NotImplementedException ();\r
632                 }\r
633                 [MonoTODO]\r
634                 public Message Receive (TimeSpan timeout, MessageQueueTransaction transaction)\r
635                 {\r
636                         throw new NotImplementedException ();\r
637                 }\r
638                 [MonoTODO]\r
639                 public Message Receive (TimeSpan timeout, MessageQueueTransactionType transactionType)\r
640                 {\r
641                         throw new NotImplementedException ();\r
642                 }\r
643                 [MonoTODO]\r
644                 public Message ReceiveByCorrelationId (string correlationId)\r
645                 {\r
646                         throw new NotImplementedException ();\r
647                 }\r
648                 [MonoTODO]\r
649                 public Message ReceiveByCorrelationId (string correlationId, MessageQueueTransaction transaction)\r
650                 {\r
651                         throw new NotImplementedException ();\r
652                 }\r
653                 [MonoTODO]\r
654                 public Message ReceiveByCorrelationId (string correlationId, MessageQueueTransactionType transactionType)\r
655                 {\r
656                         throw new NotImplementedException ();\r
657                 }\r
658                 [MonoTODO]\r
659                 public Message ReceiveByCorrelationId (string correlationId, TimeSpan timeout)\r
660                 {\r
661                         throw new NotImplementedException ();\r
662                 }\r
663                 [MonoTODO]\r
664                 public Message ReceiveByCorrelationId (string correlationId, TimeSpan timeout, MessageQueueTransaction transaction)\r
665                 {\r
666                         throw new NotImplementedException ();\r
667                 }\r
668                 [MonoTODO]\r
669                 public Message ReceiveByCorrelationId (string correlationId, TimeSpan timeout, MessageQueueTransactionType transactionType)\r
670                 {\r
671                         throw new NotImplementedException ();\r
672                 }\r
673                 [MonoTODO]\r
674                 public Message ReceiveById (string id)\r
675                 {\r
676                         throw new NotImplementedException ();\r
677                 }\r
678                 [MonoTODO]\r
679                 public Message ReceiveById (string id, MessageQueueTransaction transaction)\r
680                 {\r
681                         throw new NotImplementedException ();\r
682                 }\r
683                 [MonoTODO]\r
684                 public Message ReceiveById (string id, MessageQueueTransactionType transactionType)\r
685                 {\r
686                         throw new NotImplementedException ();\r
687                 }\r
688                 [MonoTODO]\r
689                 public Message ReceiveById (string id, TimeSpan timeout)\r
690                 {\r
691                         throw new NotImplementedException ();\r
692                 }\r
693                 [MonoTODO]\r
694                 public Message ReceiveById (string id, TimeSpan timeout, MessageQueueTransaction transaction)\r
695                 {\r
696                         throw new NotImplementedException ();\r
697                 }\r
698                 [MonoTODO]\r
699                 public Message ReceiveById (string id, TimeSpan timeout, MessageQueueTransactionType transactionType)\r
700                 {\r
701                         throw new NotImplementedException ();\r
702                 }\r
703                 [MonoTODO]\r
704                 public void Refresh ()\r
705                 {\r
706                         throw new NotImplementedException ();\r
707                 }\r
708                 [MonoTODO]\r
709                 public void ResetPermissions ()\r
710                 {\r
711                         throw new NotImplementedException ();\r
712                 }\r
713                 [MonoTODO]\r
714                 public void Send (object obj)\r
715                 {\r
716                         throw new NotImplementedException ();\r
717                 }\r
718                 [MonoTODO]\r
719                 public void Send (object obj, MessageQueueTransaction transaction)\r
720                 {\r
721                         throw new NotImplementedException ();\r
722                 }\r
723                 [MonoTODO]\r
724                 public void Send (object obj, MessageQueueTransactionType transactionType)\r
725                 {\r
726                         throw new NotImplementedException ();\r
727                 }\r
728                 [MonoTODO]\r
729                 public void Send (object obj, string label)\r
730                 {\r
731                         throw new NotImplementedException ();\r
732                 }\r
733                 [MonoTODO]\r
734                 public void Send (object obj, string label, MessageQueueTransaction transaction)\r
735                 {\r
736                         throw new NotImplementedException ();\r
737                 }\r
738                 [MonoTODO]\r
739                 public void Send (object obj, string label, MessageQueueTransactionType transactionType)\r
740                 {\r
741                         throw new NotImplementedException ();\r
742                 }\r
743                 [MonoTODO]\r
744                 public void SetPermissions (AccessControlList dacl)\r
745                 {\r
746                         throw new NotImplementedException ();\r
747                 }\r
748                 [MonoTODO]\r
749                 public void SetPermissions (MessageQueueAccessControlEntry ace)\r
750                 {\r
751                         throw new NotImplementedException ();\r
752                 }\r
753                 [MonoTODO]\r
754                 public void SetPermissions (string user, MessageQueueAccessRights rights)\r
755                 {\r
756                         throw new NotImplementedException ();\r
757                 }\r
758                 [MonoTODO]\r
759                 public void SetPermissions (string user, MessageQueueAccessRights rights, AccessControlEntryType entryType)\r
760                 {\r
761                         throw new NotImplementedException ();\r
762                 }\r
763                 [MonoTODO]\r
764                 protected override void Dispose (bool disposing)\r
765                 {\r
766                         throw new NotImplementedException ();\r
767                 }\r
768 \r
769                 #endregion //Methods\r
770 \r
771                 //TODO: Use these events.\r
772 \r
773                 [MessagingDescription ("MQ_PeekCompleted")]\r
774                 public event PeekCompletedEventHandler PeekCompleted;\r
775 \r
776                 [MessagingDescription ("MQ_ReceiveCompleted")]\r
777                 public event ReceiveCompletedEventHandler ReceiveCompleted;\r
778         }\r
779 }\r