From e34fc4c1313216bc882b3916f4038fd8f7bc8c47 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 9 Feb 2010 20:50:40 +0000 Subject: [PATCH] 2010-02-09 Chris Toshok * MessageQueue.cs: stub out the ctor that takes a QueueAccessMode. * QueueAccessMode.cs: new enum. svn path=/branches/mono-2-6/mcs/; revision=151140 --- .../System.Messaging/System.Messaging.dll.sources | 1 + .../System.Messaging/System.Messaging/ChangeLog | 6 ++++ .../System.Messaging/MessageQueue.cs | 5 +++ .../System.Messaging/QueueAccessMode.cs | 37 ++++++++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 mcs/class/System.Messaging/System.Messaging/QueueAccessMode.cs diff --git a/mcs/class/System.Messaging/System.Messaging.dll.sources b/mcs/class/System.Messaging/System.Messaging.dll.sources index f0e99fab219..087a760384a 100644 --- a/mcs/class/System.Messaging/System.Messaging.dll.sources +++ b/mcs/class/System.Messaging/System.Messaging.dll.sources @@ -40,6 +40,7 @@ System.Messaging/MessagingDescriptionAttribute.cs ../../build/common/MonoTODOAttribute.cs System.Messaging/PeekCompletedEventArgs.cs System.Messaging/PeekCompletedEventHandler.cs +System.Messaging/QueueAccessMode.cs System.Messaging/ReceiveCompletedEventArgs.cs System.Messaging/ReceiveCompletedEventHandler.cs System.Messaging/StandardAccessRights.cs diff --git a/mcs/class/System.Messaging/System.Messaging/ChangeLog b/mcs/class/System.Messaging/System.Messaging/ChangeLog index e5fcc897f0c..9f229808348 100644 --- a/mcs/class/System.Messaging/System.Messaging/ChangeLog +++ b/mcs/class/System.Messaging/System.Messaging/ChangeLog @@ -1,3 +1,9 @@ +2010-02-09 Chris Toshok + + * MessageQueue.cs: stub out the ctor that takes a QueueAccessMode. + + * QueueAccessMode.cs: new enum. + 2009-07-11 Michael Barker * MessageQueueException.cs: Removed MonoTODO. diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueue.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueue.cs index 1d14e5a4de2..4fc940334fe 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueue.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueue.cs @@ -73,6 +73,11 @@ namespace System.Messaging { } + public MessageQueue (string path, QueueAccessMode accessMode) : + this (GetMessageQueue (path)) + { + } + internal MessageQueue (IMessageQueue delegateQueue) { this.delegateQueue = delegateQueue; diff --git a/mcs/class/System.Messaging/System.Messaging/QueueAccessMode.cs b/mcs/class/System.Messaging/System.Messaging/QueueAccessMode.cs new file mode 100644 index 00000000000..3dfe5c9d6f0 --- /dev/null +++ b/mcs/class/System.Messaging/System.Messaging/QueueAccessMode.cs @@ -0,0 +1,37 @@ +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +using System; + +namespace System.Messaging +{ + public enum QueueAccessMode + { + Receive = 1, + Send = 2, + SendAndReceive = 3, + + Peek = 32, + + PeekAndAdmin = Peek + 128, + ReceiveAndAdmin = Receive + 128 + } +} -- 2.11.4.GIT