Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Toshok <toshok@novell.com>2010-02-09 23:52:58 +0300
committerChris Toshok <toshok@novell.com>2010-02-09 23:52:58 +0300
commita6fb40149c9eb66a8da3ebe43f2ef9151364e497 (patch)
tree42a58c0b9bf1e16cc250ead37486b1b6a213fb36 /mcs/class/System.Messaging
parent87871fe69be71f9223f918a76e47cd55f202e51b (diff)
2010-02-09 Chris Toshok <toshok@ximian.com>
* MessageQueue.cs: stub out the ctor that takes a QueueAccessMode. * QueueAccessMode.cs: new enum. svn path=/trunk/mcs/; revision=151141
Diffstat (limited to 'mcs/class/System.Messaging')
-rw-r--r--mcs/class/System.Messaging/System.Messaging.dll.sources1
-rw-r--r--mcs/class/System.Messaging/System.Messaging/ChangeLog6
-rw-r--r--mcs/class/System.Messaging/System.Messaging/MessageQueue.cs5
-rw-r--r--mcs/class/System.Messaging/System.Messaging/QueueAccessMode.cs37
4 files changed, 49 insertions, 0 deletions
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 <toshok@ximian.com>
+
+ * MessageQueue.cs: stub out the ctor that takes a QueueAccessMode.
+
+ * QueueAccessMode.cs: new enum.
+
2009-07-11 Michael Barker <mike@middlesoft.co.uk>
* 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
+ }
+}