diff options
author | Marek Safar <marek.safar@gmail.com> | 2010-11-12 12:56:56 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2010-11-12 13:32:41 +0300 |
commit | a73af072dc7341497943672c714304681295ff4b (patch) | |
tree | d615e93f7ac7edd131656f5d04c20a1c61095e9f /mcs/class/System.Messaging | |
parent | 8e47d66933da273d88966238e87a1a7eaa926d03 (diff) |
CRLF->LF conversion
Diffstat (limited to 'mcs/class/System.Messaging')
37 files changed, 2474 insertions, 2510 deletions
diff --git a/mcs/class/System.Messaging/System.Messaging/.gitattributes b/mcs/class/System.Messaging/System.Messaging/.gitattributes index ef45bf81257..131d955468c 100644 --- a/mcs/class/System.Messaging/System.Messaging/.gitattributes +++ b/mcs/class/System.Messaging/System.Messaging/.gitattributes @@ -1,38 +1,2 @@ -/AccessControlEntry.cs -crlf -/AccessControlEntryType.cs -crlf -/AccessControlList.cs -crlf -/AcknowledgeTypes.cs -crlf -/Acknowledgment.cs -crlf -/ActiveXMessageFormatter.cs -crlf -/CryptographicProviderType.cs -crlf -/DefaultPropertiesToSend.cs -crlf -/EncryptionAlgorithm.cs -crlf -/EncryptionRequired.cs -crlf -/GenericAccessRights.cs -crlf -/HashAlgorithm.cs -crlf /Message.resx -crlf -/MessagePriority.cs -crlf -/MessagePropertyFilter.cs -crlf /MessageQueue.resx -crlf -/MessageQueueAccessControlEntry.cs -crlf -/MessageQueueAccessRights.cs -crlf -/MessageQueueCriteria.cs -crlf -/MessageQueueEnumerator.cs -crlf -/MessageQueueErrorCode.cs -crlf -/MessageQueuePermission.cs -crlf -/MessageQueuePermissionAccess.cs -crlf -/MessageQueuePermissionAttribute.cs -crlf -/MessageQueuePermissionEntry.cs -crlf -/MessageQueuePermissionEntryCollection.cs -crlf -/MessageQueueTransaction.cs -crlf -/MessageQueueTransactionStatus.cs -crlf -/MessageQueueTransactionType.cs -crlf -/MessageType.cs -crlf -/MessagingDescriptionAttribute.cs -crlf -/PeekCompletedEventArgs.cs -crlf -/PeekCompletedEventHandler.cs -crlf -/ReceiveCompletedEventArgs.cs -crlf -/ReceiveCompletedEventHandler.cs -crlf -/StandardAccessRights.cs -crlf -/Trustee.cs -crlf -/TrusteeType.cs -crlf diff --git a/mcs/class/System.Messaging/System.Messaging/AccessControlEntry.cs b/mcs/class/System.Messaging/System.Messaging/AccessControlEntry.cs index 5b45f1d5e1c..aedc24acc1a 100644 --- a/mcs/class/System.Messaging/System.Messaging/AccessControlEntry.cs +++ b/mcs/class/System.Messaging/System.Messaging/AccessControlEntry.cs @@ -1,94 +1,94 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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 class AccessControlEntry
- {
- #region Constructor
-
- [MonoTODO]
- public AccessControlEntry()
- {
- }
- [MonoTODO]
- public AccessControlEntry(Trustee trustee)
- {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public AccessControlEntry(Trustee trustee,
- GenericAccessRights genericAccessRights,
- StandardAccessRights standardAccessRights,
- AccessControlEntryType entryType)
- {
- throw new NotImplementedException();
- }
-
- #endregion //Constructor
-
-
- #region Properties
-
- public AccessControlEntryType EntryType {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
- public GenericAccessRights GenericAccessRights {
- [MonoTODO]
- get {throw new NotImplementedException(); }
- [MonoTODO]
- set {throw new NotImplementedException(); }
- }
- public StandardAccessRights StandardAccessRights {
- [MonoTODO]
- get { throw new NotImplementedException();}
- [MonoTODO]
- set { throw new NotImplementedException();}
- }
- public Trustee Trustee {
- [MonoTODO]
- get { throw new NotImplementedException();}
- [MonoTODO]
- set { throw new NotImplementedException();}
- }
- protected int CustomAccessRights {
- [MonoTODO]
- get { throw new NotImplementedException(); }
- [MonoTODO]
- set { throw new NotImplementedException(); }
- }
-
- #endregion //Properties
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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 class AccessControlEntry + { + #region Constructor + + [MonoTODO] + public AccessControlEntry() + { + } + [MonoTODO] + public AccessControlEntry(Trustee trustee) + { + throw new NotImplementedException(); + } + [MonoTODO] + public AccessControlEntry(Trustee trustee, + GenericAccessRights genericAccessRights, + StandardAccessRights standardAccessRights, + AccessControlEntryType entryType) + { + throw new NotImplementedException(); + } + + #endregion //Constructor + + + #region Properties + + public AccessControlEntryType EntryType { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + public GenericAccessRights GenericAccessRights { + [MonoTODO] + get {throw new NotImplementedException(); } + [MonoTODO] + set {throw new NotImplementedException(); } + } + public StandardAccessRights StandardAccessRights { + [MonoTODO] + get { throw new NotImplementedException();} + [MonoTODO] + set { throw new NotImplementedException();} + } + public Trustee Trustee { + [MonoTODO] + get { throw new NotImplementedException();} + [MonoTODO] + set { throw new NotImplementedException();} + } + protected int CustomAccessRights { + [MonoTODO] + get { throw new NotImplementedException(); } + [MonoTODO] + set { throw new NotImplementedException(); } + } + + #endregion //Properties + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/AccessControlEntryType.cs b/mcs/class/System.Messaging/System.Messaging/AccessControlEntryType.cs index d70c86c93e5..30a380cd31a 100644 --- a/mcs/class/System.Messaging/System.Messaging/AccessControlEntryType.cs +++ b/mcs/class/System.Messaging/System.Messaging/AccessControlEntryType.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,16 +27,16 @@ // 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
-{
- [Serializable]
- public enum AccessControlEntryType
- {
- Allow = 1,
- Deny = 3,
- Revoke = 4,
- Set = 2
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum AccessControlEntryType + { + Allow = 1, + Deny = 3, + Revoke = 4, + Set = 2 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/AccessControlList.cs b/mcs/class/System.Messaging/System.Messaging/AccessControlList.cs index cb72d49c52f..ebc85674490 100644 --- a/mcs/class/System.Messaging/System.Messaging/AccessControlList.cs +++ b/mcs/class/System.Messaging/System.Messaging/AccessControlList.cs @@ -19,53 +19,53 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -
-//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-using System;
-using System.Collections;
-
-namespace System.Messaging
-{
- public class AccessControlList: CollectionBase
- {
- [MonoTODO]
- public AccessControlList()
- {
- }
- [MonoTODO]
- public int Add(AccessControlEntry entry) {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public bool Contains(AccessControlEntry entry) {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public void CopyTo(AccessControlEntry[] array, int index) {
- if (array == null)
- throw new ArgumentNullException();
- if (index < 0)
- throw new ArgumentOutOfRangeException();
- throw new NotImplementedException();
- }
- [MonoTODO]
- public int IndexOf(AccessControlEntry entry) {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public void Insert(int index, AccessControlEntry entry) {
- throw new NotImplementedException();
- }
- [MonoTODO]
- public void Remove(AccessControlEntry entry) {
- throw new NotImplementedException();
- }
- }
-}
+ +// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// +using System; +using System.Collections; + +namespace System.Messaging +{ + public class AccessControlList: CollectionBase + { + [MonoTODO] + public AccessControlList() + { + } + [MonoTODO] + public int Add(AccessControlEntry entry) { + throw new NotImplementedException(); + } + [MonoTODO] + public bool Contains(AccessControlEntry entry) { + throw new NotImplementedException(); + } + [MonoTODO] + public void CopyTo(AccessControlEntry[] array, int index) { + if (array == null) + throw new ArgumentNullException(); + if (index < 0) + throw new ArgumentOutOfRangeException(); + throw new NotImplementedException(); + } + [MonoTODO] + public int IndexOf(AccessControlEntry entry) { + throw new NotImplementedException(); + } + [MonoTODO] + public void Insert(int index, AccessControlEntry entry) { + throw new NotImplementedException(); + } + [MonoTODO] + public void Remove(AccessControlEntry entry) { + throw new NotImplementedException(); + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/AcknowledgeTypes.cs b/mcs/class/System.Messaging/System.Messaging/AcknowledgeTypes.cs index 96c4e03925b..e6b88c44c93 100644 --- a/mcs/class/System.Messaging/System.Messaging/AcknowledgeTypes.cs +++ b/mcs/class/System.Messaging/System.Messaging/AcknowledgeTypes.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,21 +27,21 @@ // 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
-{
- [Flags]
- [Serializable]
- public enum AcknowledgeTypes
- {
- FullReachQueue = 5,
- FullReceive = 14,
- NegativeReceive = 8,
- None = 0,
- NotAcknowledgeReachQueue = 4,
- NotAcknowledgeReceive = 12,
- PositiveArrival = 1,
- PositiveReceive = 2
- }
-}
+using System; + +namespace System.Messaging +{ + [Flags] + [Serializable] + public enum AcknowledgeTypes + { + FullReachQueue = 5, + FullReceive = 14, + NegativeReceive = 8, + None = 0, + NotAcknowledgeReachQueue = 4, + NotAcknowledgeReceive = 12, + PositiveArrival = 1, + PositiveReceive = 2 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/Acknowledgment.cs b/mcs/class/System.Messaging/System.Messaging/Acknowledgment.cs index 29bfeba4862..a3b33441205 100644 --- a/mcs/class/System.Messaging/System.Messaging/Acknowledgment.cs +++ b/mcs/class/System.Messaging/System.Messaging/Acknowledgment.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,29 +27,29 @@ // 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
-{
- [Serializable]
- public enum Acknowledgment
- {
- AccessDenied = 32772,
- BadDestinationQueue = 32768,
- BadEncryption = 32775,
- BadSignature = 32774,
- CouldNotEncrypt = 32776,
- HopCountExceeded = 32773,
- None = 0,
- NotTransactionalMessage = 32778,
- NotTransactionalQueue = 32777,
- Purged = 32769,
- QueueDeleted = 49152,
- QueueExceedMaximumSize = 32771,
- QueuePurged = 49153,
- ReachQueue = 2,
- ReachQueueTimeout = 32770,
- Receive = 16384,
- ReceiveTimeout = 49154
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum Acknowledgment + { + AccessDenied = 32772, + BadDestinationQueue = 32768, + BadEncryption = 32775, + BadSignature = 32774, + CouldNotEncrypt = 32776, + HopCountExceeded = 32773, + None = 0, + NotTransactionalMessage = 32778, + NotTransactionalQueue = 32777, + Purged = 32769, + QueueDeleted = 49152, + QueueExceedMaximumSize = 32771, + QueuePurged = 49153, + ReachQueue = 2, + ReachQueueTimeout = 32770, + Receive = 16384, + ReceiveTimeout = 49154 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/ActiveXMessageFormatter.cs b/mcs/class/System.Messaging/System.Messaging/ActiveXMessageFormatter.cs index c6dc8099974..8ac7c500844 100644 --- a/mcs/class/System.Messaging/System.Messaging/ActiveXMessageFormatter.cs +++ b/mcs/class/System.Messaging/System.Messaging/ActiveXMessageFormatter.cs @@ -19,55 +19,55 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -
-//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-using System;
-
-namespace System.Messaging
-{
- public class ActiveXMessageFormatter: IMessageFormatter, ICloneable
- {
- [MonoTODO]
- public ActiveXMessageFormatter()
- {
- }
-
- [MonoTODO]
- public bool CanRead(Message message)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public object Clone()
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public static void InitStreamedObject(object streamedObject)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public object Read(Message message)
- {
- throw new NotImplementedException();
- }
-
- [MonoTODO]
- public void Write(Message message, object obj)
- {
- throw new NotImplementedException();
- }
- }
-}
+ +// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// + +using System; + +namespace System.Messaging +{ + public class ActiveXMessageFormatter: IMessageFormatter, ICloneable + { + [MonoTODO] + public ActiveXMessageFormatter() + { + } + + [MonoTODO] + public bool CanRead(Message message) + { + throw new NotImplementedException(); + } + + [MonoTODO] + public object Clone() + { + throw new NotImplementedException(); + } + + [MonoTODO] + public static void InitStreamedObject(object streamedObject) + { + throw new NotImplementedException(); + } + + [MonoTODO] + public object Read(Message message) + { + throw new NotImplementedException(); + } + + [MonoTODO] + public void Write(Message message, object obj) + { + throw new NotImplementedException(); + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/CryptographicProviderType.cs b/mcs/class/System.Messaging/System.Messaging/CryptographicProviderType.cs index df453e9890a..afa23db95e6 100644 --- a/mcs/class/System.Messaging/System.Messaging/CryptographicProviderType.cs +++ b/mcs/class/System.Messaging/System.Messaging/CryptographicProviderType.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,24 +27,24 @@ // 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
-{
- [Serializable]
- public enum CryptographicProviderType
- {
- Dss = 3,
- Fortezza = 4,
- MicrosoftExchange = 5,
- None = 0,
- RsaFull = 1,
- RsqSig = 2,
- Ssl = 6,
- SttAcq = 8,
- SttBrnd = 9,
- SttIss = 11,
- SttMer = 7,
- SttRoot = 10
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum CryptographicProviderType + { + Dss = 3, + Fortezza = 4, + MicrosoftExchange = 5, + None = 0, + RsaFull = 1, + RsqSig = 2, + Ssl = 6, + SttAcq = 8, + SttBrnd = 9, + SttIss = 11, + SttMer = 7, + SttRoot = 10 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/DefaultPropertiesToSend.cs b/mcs/class/System.Messaging/System.Messaging/DefaultPropertiesToSend.cs index 8048e58d9e0..eaa9a78223b 100644 --- a/mcs/class/System.Messaging/System.Messaging/DefaultPropertiesToSend.cs +++ b/mcs/class/System.Messaging/System.Messaging/DefaultPropertiesToSend.cs @@ -1,216 +1,216 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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;
-using System.ComponentModel;
-using System.ComponentModel.Design;
-
-namespace System.Messaging
-{
- [TypeConverter (typeof(ExpandableObjectConverter))]
- public class DefaultPropertiesToSend
- {
- [MonoTODO]
- public DefaultPropertiesToSend()
- {
- }
-
- [DefaultValue (AcknowledgeTypes.None)]
- [MessagingDescription ("MsgAcknowledgeType")]
- public AcknowledgeTypes AcknowledgeType {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (null)]
- [MessagingDescription ("MsgAdministrationQueue")]
- public MessageQueue AdministrationQueue {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (0)]
- [MessagingDescription ("MsgAppSpecific")]
- public int AppSpecific {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgAttachSenderId")]
- public bool AttachSenderId {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (EncryptionAlgorithm.Rc2)]
- [MessagingDescription ("MsgEncryptionAlgorithm")]
- public EncryptionAlgorithm EncryptionAlgorithm {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [Editor ("System.ComponentModel.Design.ArrayEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
- [MessagingDescription ("MsgExtension")]
- public byte[] Extension {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (HashAlgorithm.Md5)]
- [MessagingDescription ("MsgHashAlgorithm")]
- public HashAlgorithm HashAlgorithm {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue ("")]
- [MessagingDescription ("MsgLabel")]
- public string Label {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (MessagePriority.Normal)]
- [MessagingDescription ("MsgPriority")]
- public MessagePriority Priority {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgRecoverable")]
- public bool Recoverable {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (null)]
- [MessagingDescription ("MsgResponseQueue")]
- public MessageQueue ResponseQueue {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [TypeConverter (typeof(TimeoutConverter))]
- [MessagingDescription ("MsgTimeToBeReceived")]
- public TimeSpan TimeToBeReceived {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [TypeConverter (typeof(TimeoutConverter))]
- [MessagingDescription ("MsgTimeToReachQueue")]
- public TimeSpan TimeToReachQueue {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (null)]
- [MessagingDescription ("MsgTransactionStatusQueue")]
- public MessageQueue TransactionStatusQueue {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseAuthentication")]
- public bool UseAuthentication {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseDeadLetterQueue")]
- public bool UseDeadLetterQueue {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseEncryption")]
- public bool UseEncryption {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseJournalQueue")]
- public bool UseJournalQueue {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseTracing")]
- public bool UseTracing {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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; +using System.ComponentModel; +using System.ComponentModel.Design; + +namespace System.Messaging +{ + [TypeConverter (typeof(ExpandableObjectConverter))] + public class DefaultPropertiesToSend + { + [MonoTODO] + public DefaultPropertiesToSend() + { + } + + [DefaultValue (AcknowledgeTypes.None)] + [MessagingDescription ("MsgAcknowledgeType")] + public AcknowledgeTypes AcknowledgeType { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (null)] + [MessagingDescription ("MsgAdministrationQueue")] + public MessageQueue AdministrationQueue { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (0)] + [MessagingDescription ("MsgAppSpecific")] + public int AppSpecific { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (true)] + [MessagingDescription ("MsgAttachSenderId")] + public bool AttachSenderId { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (EncryptionAlgorithm.Rc2)] + [MessagingDescription ("MsgEncryptionAlgorithm")] + public EncryptionAlgorithm EncryptionAlgorithm { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [Editor ("System.ComponentModel.Design.ArrayEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)] + [MessagingDescription ("MsgExtension")] + public byte[] Extension { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (HashAlgorithm.Md5)] + [MessagingDescription ("MsgHashAlgorithm")] + public HashAlgorithm HashAlgorithm { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue ("")] + [MessagingDescription ("MsgLabel")] + public string Label { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (MessagePriority.Normal)] + [MessagingDescription ("MsgPriority")] + public MessagePriority Priority { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (false)] + [MessagingDescription ("MsgRecoverable")] + public bool Recoverable { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (null)] + [MessagingDescription ("MsgResponseQueue")] + public MessageQueue ResponseQueue { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [TypeConverter (typeof(TimeoutConverter))] + [MessagingDescription ("MsgTimeToBeReceived")] + public TimeSpan TimeToBeReceived { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [TypeConverter (typeof(TimeoutConverter))] + [MessagingDescription ("MsgTimeToReachQueue")] + public TimeSpan TimeToReachQueue { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (null)] + [MessagingDescription ("MsgTransactionStatusQueue")] + public MessageQueue TransactionStatusQueue { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseAuthentication")] + public bool UseAuthentication { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseDeadLetterQueue")] + public bool UseDeadLetterQueue { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseEncryption")] + public bool UseEncryption { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseJournalQueue")] + public bool UseJournalQueue { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseTracing")] + public bool UseTracing { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/EncryptionAlgorithm.cs b/mcs/class/System.Messaging/System.Messaging/EncryptionAlgorithm.cs index fd3ab54f60d..b9d111d55bf 100644 --- a/mcs/class/System.Messaging/System.Messaging/EncryptionAlgorithm.cs +++ b/mcs/class/System.Messaging/System.Messaging/EncryptionAlgorithm.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,15 +27,15 @@ // 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
-{
- [Serializable]
- public enum EncryptionAlgorithm
- {
- None = 0,
- Rc2 = 26114,
- Rc4 = 26625
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum EncryptionAlgorithm + { + None = 0, + Rc2 = 26114, + Rc4 = 26625 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/EncryptionRequired.cs b/mcs/class/System.Messaging/System.Messaging/EncryptionRequired.cs index 6051436ff91..134969696a9 100644 --- a/mcs/class/System.Messaging/System.Messaging/EncryptionRequired.cs +++ b/mcs/class/System.Messaging/System.Messaging/EncryptionRequired.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,15 +27,15 @@ // 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
-{
- [Serializable]
- public enum EncryptionRequired
- {
- Body = 2,
- None = 0,
- Optional = 1
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum EncryptionRequired + { + Body = 2, + None = 0, + Optional = 1 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/GenericAccessRights.cs b/mcs/class/System.Messaging/System.Messaging/GenericAccessRights.cs index 1bed4207134..ce334683463 100644 --- a/mcs/class/System.Messaging/System.Messaging/GenericAccessRights.cs +++ b/mcs/class/System.Messaging/System.Messaging/GenericAccessRights.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,18 +27,18 @@ // 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
-{
- [Flags]
- [Serializable]
- public enum GenericAccessRights
- {
- All = 268435456,
- Execute = 536870912,
- None = 0,
- Read = -2147483648,
- Write = 1073741824
- }
-}
+using System; + +namespace System.Messaging +{ + [Flags] + [Serializable] + public enum GenericAccessRights + { + All = 268435456, + Execute = 536870912, + None = 0, + Read = -2147483648, + Write = 1073741824 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/HashAlgorithm.cs b/mcs/class/System.Messaging/System.Messaging/HashAlgorithm.cs index dc10d8c7193..f28f5ce3de6 100644 --- a/mcs/class/System.Messaging/System.Messaging/HashAlgorithm.cs +++ b/mcs/class/System.Messaging/System.Messaging/HashAlgorithm.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,18 +27,18 @@ // 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
-{
- [Serializable]
- public enum HashAlgorithm
- {
- Mac = 32773,
- Md2 = 32769,
- Md4 = 32770,
- Md5 = 32771,
- None = 0,
- Sha = 32772
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum HashAlgorithm + { + Mac = 32773, + Md2 = 32769, + Md4 = 32770, + Md5 = 32771, + None = 0, + Sha = 32772 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessagePriority.cs b/mcs/class/System.Messaging/System.Messaging/MessagePriority.cs index 6a53bbda55b..5ba1325cd3c 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessagePriority.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessagePriority.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,20 +27,20 @@ // 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
-{
- [Serializable]
- public enum MessagePriority
- {
- AboveNormal = 4,
- High = 5,
- Highest = 7,
- Low = 2,
- Lowest = 0,
- Normal = 3,
- VeryHigh = 6,
- VeryLow = 1
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum MessagePriority + { + AboveNormal = 4, + High = 5, + Highest = 7, + Low = 2, + Lowest = 0, + Normal = 3, + VeryHigh = 6, + VeryLow = 1 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessagePropertyFilter.cs b/mcs/class/System.Messaging/System.Messaging/MessagePropertyFilter.cs index 716927a6606..0589e2570db 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessagePropertyFilter.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessagePropertyFilter.cs @@ -1,583 +1,583 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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;
-using System.ComponentModel;
-
-namespace System.Messaging
-{
- [TypeConverter (typeof(ExpandableObjectConverter))]
- public class MessagePropertyFilter
- {
- private bool acknowledgeType = false;
- private bool acknowledgment = false;
- private bool administrationQueue = false;
- private bool appSpecific = false;
- private bool arrivedTime = false;
- private bool attachSenderId = false;
- private bool authenticated = false;
- private bool authenticationProviderName = false;
- private bool authenticationProviderType = false;
- private bool body = false;
- private bool connectorType = false;
- private bool correlationId = false;
- private int defaultBodySize = 1024;
- private int defaultExtensionSize = 255;
- private int defaultLabelSize = 255;
- private bool destinationQueue = false;
- private bool destinationSymmetricKey = false;
- private bool digitalSignature = false;
- private bool encryptionAlgorithm = false;
- private bool extension = false;
- private bool hashAlgorithm = false;
- private bool id = false;
- private bool isFirstInTransaction = false;
- private bool isLastInTransaction = false;
- private bool label = false;
- private bool messageType = false;
- private bool priority = false;
- private bool recoverable = false;
- private bool responseQueue = false;
- private bool senderCertificate = false;
- private bool senderId = false;
- private bool senderVersion = false;
- private bool sentTime = false;
- private bool sourceMachine = false;
- private bool timeToBeReceived = false;
- private bool timeToReachQueue = false;
- private bool transactionId = false;
- private bool transactionStatusQueue = false;
- private bool useAuthentication = false;
- private bool useDeadLetterQueue = false;
- private bool useEncryption = false;
- private bool useJournalQueue = false;
- private bool useTracing = false;
-
- [MonoTODO]
- public MessagePropertyFilter ()
- {
-
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgAcknowledgeType")]
- public bool AcknowledgeType
- {
- get { return acknowledgeType; }
- set { acknowledgeType = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgAcknowledgement")]
- public bool Acknowledgment
- {
- get { return acknowledgment; }
- set { acknowledgment = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgAdministrationQueue")]
- public bool AdministrationQueue
- {
- get { return administrationQueue; }
- set { administrationQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgAppSpecific")]
- public bool AppSpecific
- {
- get { return appSpecific; }
- set { appSpecific = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgArrivedTime")]
- public bool ArrivedTime
- {
- get { return arrivedTime; }
- set { arrivedTime = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgAttachSenderId")]
- public bool AttachSenderId
- {
- get { return attachSenderId; }
- set { attachSenderId = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgAuthenticated")]
- public bool Authenticated
- {
- get { return authenticated; }
- set { authenticated = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgAuthenticationProviderName")]
- public bool AuthenticationProviderName
- {
- get { return authenticationProviderName; }
- set { authenticationProviderName = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgAuthenticationProviderType")]
- public bool AuthenticationProviderType
- {
- get { return authenticationProviderType; }
- set { authenticationProviderType = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgBody")]
- public bool Body
- {
- get { return body; }
- set { body = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgConnectorType")]
- public bool ConnectorType
- {
- get { return connectorType; }
- set { connectorType = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgCorrelationId")]
- public bool CorrelationId
- {
- get { return correlationId; }
- set { correlationId = value; }
- }
-
- [DefaultValue (1024)]
- [MessagingDescription ("MsgDefaultBodySize")]
- public int DefaultBodySize
- {
- get { return defaultBodySize; }
- set
- {
- if (value < 0)
- throw new ArgumentException ("DefaultBodySize");
- defaultBodySize = value;
- }
- }
-
- [DefaultValue (255)]
- [MessagingDescription ("MsgDefaultExtensionSize")]
- public int DefaultExtensionSize
- {
- get { return defaultExtensionSize; }
- set
- {
- if (value < 0)
- throw new ArgumentException ("DefaultExtensionSize");
- defaultExtensionSize = value;
- }
- }
-
- [DefaultValue (255)]
- [MessagingDescription ("MsgDefaultLabelSize")]
- public int DefaultLabelSize
- {
- get { return defaultLabelSize; }
- set
- {
- if (value < 0) throw new ArgumentException ("DefaultLabelSize");
- defaultLabelSize = value;
- }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgDestinationQueue")]
- public bool DestinationQueue
- {
- get { return destinationQueue; }
- set { destinationQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgDestinationSymmetricKey")]
- public bool DestinationSymmetricKey
- {
- get { return destinationSymmetricKey; }
- set { destinationSymmetricKey = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgDigitalSignature")]
- public bool DigitalSignature
- {
- get { return digitalSignature; }
- set { digitalSignature = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgEncryptionAlgorithm")]
- public bool EncryptionAlgorithm
- {
- get { return encryptionAlgorithm; }
- set { encryptionAlgorithm = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgExtension")]
- public bool Extension
- {
- get { return extension; }
- set { extension = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgHashAlgorithm")]
- public bool HashAlgorithm
- {
- get { return hashAlgorithm; }
- set { hashAlgorithm = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgId")]
- public bool Id
- {
- get { return id; }
- set { id = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgIsFirstInTransaction")]
- public bool IsFirstInTransaction
- {
- get { return isFirstInTransaction; }
- set { isFirstInTransaction = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgIsLastInTransaction")]
- public bool IsLastInTransaction
- {
- get { return isLastInTransaction; }
- set { isLastInTransaction = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgLabel")]
- public bool Label
- {
- get { return label; }
- set { label = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgMessageType")]
- public bool MessageType
- {
- get { return messageType; }
- set { messageType = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgPriority")]
- public bool Priority
- {
- get { return priority; }
- set { priority = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgRecoverable")]
- public bool Recoverable
- {
- get { return recoverable; }
- set { recoverable = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgResponseQueue")]
- public bool ResponseQueue
- {
- get { return responseQueue; }
- set { responseQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgSenderCertificate")]
- public bool SenderCertificate
- {
- get { return senderCertificate; }
- set { senderCertificate = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgSenderId")]
- public bool SenderId
- {
- get { return senderId; }
- set { senderId = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgSenderVersion")]
- public bool SenderVersion
- {
- get { return senderVersion; }
- set { senderVersion = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgSentTime")]
- public bool SentTime
- {
- get { return sentTime; }
- set { sentTime = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgSourceMachine")]
- public bool SourceMachine
- {
- get { return sourceMachine; }
- set { sourceMachine = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgTimeToBeReceived")]
- public bool TimeToBeReceived
- {
- get { return timeToBeReceived; }
- set { timeToBeReceived = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgTimeToReachQueue")]
- public bool TimeToReachQueue
- {
- get { return timeToReachQueue; }
- set { timeToReachQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgTransactionId")]
- public bool TransactionId
- {
- get { return transactionId; }
- set { transactionId = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgTransactionStatusQueue")]
- public bool TransactionStatusQueue
- {
- get { return transactionStatusQueue; }
- set { transactionStatusQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseAuthentication")]
- public bool UseAuthentication
- {
- get { return useAuthentication; }
- set { useAuthentication = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgUseDeadLetterQueue")]
- public bool UseDeadLetterQueue
- {
- get { return useDeadLetterQueue; }
- set { useDeadLetterQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseEncryption")]
- public bool UseEncryption
- {
- get { return useEncryption; }
- set { useEncryption = value; }
- }
-
- [DefaultValue (true)]
- [MessagingDescription ("MsgUseJournalQueue")]
- public bool UseJournalQueue
- {
- get { return useJournalQueue; }
- set { useJournalQueue = value; }
- }
-
- [DefaultValue (false)]
- [MessagingDescription ("MsgUseTracing")]
- public bool UseTracing
- {
- get { return useTracing; }
- set { useTracing = value; }
- }
-
- public void ClearAll ()
- {
- acknowledgeType = false;
- acknowledgment = false;
- administrationQueue = false;
- appSpecific = false;
- arrivedTime = false;
- attachSenderId = false;
- authenticated = false;
- authenticationProviderName = false;
- authenticationProviderType = false;
- body = false;
- connectorType = false;
- correlationId = false;
- destinationQueue = false;
- destinationSymmetricKey = false;
- digitalSignature = false;
- encryptionAlgorithm = false;
- extension = false;
- hashAlgorithm = false;
- id = false;
- isFirstInTransaction = false;
- isLastInTransaction = false;
- label = false;
- messageType = false;
- priority = false;
- recoverable = false;
- responseQueue = false;
- senderCertificate = false;
- senderId = false;
- senderVersion = false;
- sentTime = false;
- sourceMachine = false;
- timeToBeReceived = false;
- timeToReachQueue = false;
- transactionId = false;
- transactionStatusQueue = false;
- useAuthentication = false;
- useDeadLetterQueue = false;
- useEncryption = false;
- useJournalQueue = false;
- useTracing = false;
- }
-
- public void SetAll ()
- {
- acknowledgeType = true;
- acknowledgment = true;
- administrationQueue = true;
- appSpecific = true;
- arrivedTime = true;
- attachSenderId = true;
- authenticated = true;
- authenticationProviderName = true;
- authenticationProviderType = true;
- body = true;
- connectorType = true;
- correlationId = true;
- destinationQueue = true;
- destinationSymmetricKey = true;
- digitalSignature = true;
- encryptionAlgorithm = true;
- extension = true;
- hashAlgorithm = true;
- id = true;
- isFirstInTransaction = true;
- isLastInTransaction = true;
- label = true;
- messageType = true;
- priority = true;
- recoverable = true;
- responseQueue = true;
- senderCertificate = true;
- senderId = true;
- senderVersion = true;
- sentTime = true;
- sourceMachine = true;
- timeToBeReceived = true;
- timeToReachQueue = true;
- transactionId = true;
- transactionStatusQueue = true;
- useAuthentication = true;
- useDeadLetterQueue = true;
- useEncryption = true;
- useJournalQueue = true;
- useTracing = true;
- }
-
- [MonoTODO]
- public void SetDefaults ()
- {
- acknowledgeType = false;
- acknowledgment = false;
- administrationQueue = true; //
- appSpecific = false;
- arrivedTime = true; //
- attachSenderId = false;
- authenticated = false;
- authenticationProviderName = false;
- authenticationProviderType = false;
- body = true; //
- connectorType = false;
- correlationId = true; //
- defaultBodySize = 1024;
- defaultExtensionSize = 255;
- defaultLabelSize = 255;
- destinationQueue = false;
- destinationSymmetricKey = false;
- digitalSignature = false;
- encryptionAlgorithm = false;
- extension = false;
- hashAlgorithm = false;
- id = true; //
- isFirstInTransaction = false;
- isLastInTransaction = false;
- label = true; //
- messageType = false;
- priority = false;
- recoverable = false;
- responseQueue = true; //
- senderCertificate = false;
- senderId = false;
- senderVersion = false;
- sentTime = true; //
- sourceMachine = false;
- timeToBeReceived = false;
- timeToReachQueue = false;
- transactionId = false;
- transactionStatusQueue = false;
- useAuthentication = false;
- useDeadLetterQueue = false;
- useEncryption = false;
- useJournalQueue = false;
- useTracing = false;
- }
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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; +using System.ComponentModel; + +namespace System.Messaging +{ + [TypeConverter (typeof(ExpandableObjectConverter))] + public class MessagePropertyFilter + { + private bool acknowledgeType = false; + private bool acknowledgment = false; + private bool administrationQueue = false; + private bool appSpecific = false; + private bool arrivedTime = false; + private bool attachSenderId = false; + private bool authenticated = false; + private bool authenticationProviderName = false; + private bool authenticationProviderType = false; + private bool body = false; + private bool connectorType = false; + private bool correlationId = false; + private int defaultBodySize = 1024; + private int defaultExtensionSize = 255; + private int defaultLabelSize = 255; + private bool destinationQueue = false; + private bool destinationSymmetricKey = false; + private bool digitalSignature = false; + private bool encryptionAlgorithm = false; + private bool extension = false; + private bool hashAlgorithm = false; + private bool id = false; + private bool isFirstInTransaction = false; + private bool isLastInTransaction = false; + private bool label = false; + private bool messageType = false; + private bool priority = false; + private bool recoverable = false; + private bool responseQueue = false; + private bool senderCertificate = false; + private bool senderId = false; + private bool senderVersion = false; + private bool sentTime = false; + private bool sourceMachine = false; + private bool timeToBeReceived = false; + private bool timeToReachQueue = false; + private bool transactionId = false; + private bool transactionStatusQueue = false; + private bool useAuthentication = false; + private bool useDeadLetterQueue = false; + private bool useEncryption = false; + private bool useJournalQueue = false; + private bool useTracing = false; + + [MonoTODO] + public MessagePropertyFilter () + { + + } + + [DefaultValue (true)] + [MessagingDescription ("MsgAcknowledgeType")] + public bool AcknowledgeType + { + get { return acknowledgeType; } + set { acknowledgeType = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgAcknowledgement")] + public bool Acknowledgment + { + get { return acknowledgment; } + set { acknowledgment = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgAdministrationQueue")] + public bool AdministrationQueue + { + get { return administrationQueue; } + set { administrationQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgAppSpecific")] + public bool AppSpecific + { + get { return appSpecific; } + set { appSpecific = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgArrivedTime")] + public bool ArrivedTime + { + get { return arrivedTime; } + set { arrivedTime = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgAttachSenderId")] + public bool AttachSenderId + { + get { return attachSenderId; } + set { attachSenderId = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgAuthenticated")] + public bool Authenticated + { + get { return authenticated; } + set { authenticated = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgAuthenticationProviderName")] + public bool AuthenticationProviderName + { + get { return authenticationProviderName; } + set { authenticationProviderName = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgAuthenticationProviderType")] + public bool AuthenticationProviderType + { + get { return authenticationProviderType; } + set { authenticationProviderType = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgBody")] + public bool Body + { + get { return body; } + set { body = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgConnectorType")] + public bool ConnectorType + { + get { return connectorType; } + set { connectorType = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgCorrelationId")] + public bool CorrelationId + { + get { return correlationId; } + set { correlationId = value; } + } + + [DefaultValue (1024)] + [MessagingDescription ("MsgDefaultBodySize")] + public int DefaultBodySize + { + get { return defaultBodySize; } + set + { + if (value < 0) + throw new ArgumentException ("DefaultBodySize"); + defaultBodySize = value; + } + } + + [DefaultValue (255)] + [MessagingDescription ("MsgDefaultExtensionSize")] + public int DefaultExtensionSize + { + get { return defaultExtensionSize; } + set + { + if (value < 0) + throw new ArgumentException ("DefaultExtensionSize"); + defaultExtensionSize = value; + } + } + + [DefaultValue (255)] + [MessagingDescription ("MsgDefaultLabelSize")] + public int DefaultLabelSize + { + get { return defaultLabelSize; } + set + { + if (value < 0) throw new ArgumentException ("DefaultLabelSize"); + defaultLabelSize = value; + } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgDestinationQueue")] + public bool DestinationQueue + { + get { return destinationQueue; } + set { destinationQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgDestinationSymmetricKey")] + public bool DestinationSymmetricKey + { + get { return destinationSymmetricKey; } + set { destinationSymmetricKey = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgDigitalSignature")] + public bool DigitalSignature + { + get { return digitalSignature; } + set { digitalSignature = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgEncryptionAlgorithm")] + public bool EncryptionAlgorithm + { + get { return encryptionAlgorithm; } + set { encryptionAlgorithm = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgExtension")] + public bool Extension + { + get { return extension; } + set { extension = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgHashAlgorithm")] + public bool HashAlgorithm + { + get { return hashAlgorithm; } + set { hashAlgorithm = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgId")] + public bool Id + { + get { return id; } + set { id = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgIsFirstInTransaction")] + public bool IsFirstInTransaction + { + get { return isFirstInTransaction; } + set { isFirstInTransaction = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgIsLastInTransaction")] + public bool IsLastInTransaction + { + get { return isLastInTransaction; } + set { isLastInTransaction = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgLabel")] + public bool Label + { + get { return label; } + set { label = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgMessageType")] + public bool MessageType + { + get { return messageType; } + set { messageType = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgPriority")] + public bool Priority + { + get { return priority; } + set { priority = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgRecoverable")] + public bool Recoverable + { + get { return recoverable; } + set { recoverable = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgResponseQueue")] + public bool ResponseQueue + { + get { return responseQueue; } + set { responseQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgSenderCertificate")] + public bool SenderCertificate + { + get { return senderCertificate; } + set { senderCertificate = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgSenderId")] + public bool SenderId + { + get { return senderId; } + set { senderId = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgSenderVersion")] + public bool SenderVersion + { + get { return senderVersion; } + set { senderVersion = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgSentTime")] + public bool SentTime + { + get { return sentTime; } + set { sentTime = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgSourceMachine")] + public bool SourceMachine + { + get { return sourceMachine; } + set { sourceMachine = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgTimeToBeReceived")] + public bool TimeToBeReceived + { + get { return timeToBeReceived; } + set { timeToBeReceived = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgTimeToReachQueue")] + public bool TimeToReachQueue + { + get { return timeToReachQueue; } + set { timeToReachQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgTransactionId")] + public bool TransactionId + { + get { return transactionId; } + set { transactionId = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgTransactionStatusQueue")] + public bool TransactionStatusQueue + { + get { return transactionStatusQueue; } + set { transactionStatusQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseAuthentication")] + public bool UseAuthentication + { + get { return useAuthentication; } + set { useAuthentication = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgUseDeadLetterQueue")] + public bool UseDeadLetterQueue + { + get { return useDeadLetterQueue; } + set { useDeadLetterQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseEncryption")] + public bool UseEncryption + { + get { return useEncryption; } + set { useEncryption = value; } + } + + [DefaultValue (true)] + [MessagingDescription ("MsgUseJournalQueue")] + public bool UseJournalQueue + { + get { return useJournalQueue; } + set { useJournalQueue = value; } + } + + [DefaultValue (false)] + [MessagingDescription ("MsgUseTracing")] + public bool UseTracing + { + get { return useTracing; } + set { useTracing = value; } + } + + public void ClearAll () + { + acknowledgeType = false; + acknowledgment = false; + administrationQueue = false; + appSpecific = false; + arrivedTime = false; + attachSenderId = false; + authenticated = false; + authenticationProviderName = false; + authenticationProviderType = false; + body = false; + connectorType = false; + correlationId = false; + destinationQueue = false; + destinationSymmetricKey = false; + digitalSignature = false; + encryptionAlgorithm = false; + extension = false; + hashAlgorithm = false; + id = false; + isFirstInTransaction = false; + isLastInTransaction = false; + label = false; + messageType = false; + priority = false; + recoverable = false; + responseQueue = false; + senderCertificate = false; + senderId = false; + senderVersion = false; + sentTime = false; + sourceMachine = false; + timeToBeReceived = false; + timeToReachQueue = false; + transactionId = false; + transactionStatusQueue = false; + useAuthentication = false; + useDeadLetterQueue = false; + useEncryption = false; + useJournalQueue = false; + useTracing = false; + } + + public void SetAll () + { + acknowledgeType = true; + acknowledgment = true; + administrationQueue = true; + appSpecific = true; + arrivedTime = true; + attachSenderId = true; + authenticated = true; + authenticationProviderName = true; + authenticationProviderType = true; + body = true; + connectorType = true; + correlationId = true; + destinationQueue = true; + destinationSymmetricKey = true; + digitalSignature = true; + encryptionAlgorithm = true; + extension = true; + hashAlgorithm = true; + id = true; + isFirstInTransaction = true; + isLastInTransaction = true; + label = true; + messageType = true; + priority = true; + recoverable = true; + responseQueue = true; + senderCertificate = true; + senderId = true; + senderVersion = true; + sentTime = true; + sourceMachine = true; + timeToBeReceived = true; + timeToReachQueue = true; + transactionId = true; + transactionStatusQueue = true; + useAuthentication = true; + useDeadLetterQueue = true; + useEncryption = true; + useJournalQueue = true; + useTracing = true; + } + + [MonoTODO] + public void SetDefaults () + { + acknowledgeType = false; + acknowledgment = false; + administrationQueue = true; // + appSpecific = false; + arrivedTime = true; // + attachSenderId = false; + authenticated = false; + authenticationProviderName = false; + authenticationProviderType = false; + body = true; // + connectorType = false; + correlationId = true; // + defaultBodySize = 1024; + defaultExtensionSize = 255; + defaultLabelSize = 255; + destinationQueue = false; + destinationSymmetricKey = false; + digitalSignature = false; + encryptionAlgorithm = false; + extension = false; + hashAlgorithm = false; + id = true; // + isFirstInTransaction = false; + isLastInTransaction = false; + label = true; // + messageType = false; + priority = false; + recoverable = false; + responseQueue = true; // + senderCertificate = false; + senderId = false; + senderVersion = false; + sentTime = true; // + sourceMachine = false; + timeToBeReceived = false; + timeToReachQueue = false; + transactionId = false; + transactionStatusQueue = false; + useAuthentication = false; + useDeadLetterQueue = false; + useEncryption = false; + useJournalQueue = false; + useTracing = false; + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessControlEntry.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessControlEntry.cs index 4dbd414480f..426ee7ae817 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessControlEntry.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessControlEntry.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,27 +27,27 @@ // 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 class MessageQueueAccessControlEntry: AccessControlEntry
- {
- [MonoTODO]
- public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights)
- {
- }
-
- [MonoTODO]
- public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights, AccessControlEntryType entryType)
- {
- }
-
- public MessageQueueAccessRights MessageQueueAccessRights {
- [MonoTODO]
- get {throw new NotImplementedException();}
- [MonoTODO]
- set {throw new NotImplementedException();}
- }
- }
-}
+using System; + +namespace System.Messaging +{ + public class MessageQueueAccessControlEntry: AccessControlEntry + { + [MonoTODO] + public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights) + { + } + + [MonoTODO] + public MessageQueueAccessControlEntry(Trustee trustee, MessageQueueAccessRights rights, AccessControlEntryType entryType) + { + } + + public MessageQueueAccessRights MessageQueueAccessRights { + [MonoTODO] + get {throw new NotImplementedException();} + [MonoTODO] + set {throw new NotImplementedException();} + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessRights.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessRights.cs index 2318bcbe50e..77d9271161e 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessRights.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueAccessRights.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,28 +27,28 @@ // 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
-{
- [Flags]
- [Serializable]
- public enum MessageQueueAccessRights
- {
- ChangeQueuePermissions = 262144,
- DeleteJournalMessage = 8,
- DeleteMessage = 1,
- DeleteQueue = 65536,
- FullControl = 983103,
- GenericRead = 131115,
- GenericWrite = 131108,
- GetQueuePermissions = 131072,
- GetQueueProperties = 32,
- PeekMessage = 2,
- ReceiveJournalMessage = 10,
- ReceiveMessage = 3,
- SetQueueProperties = 16,
- TakeQueueOwnership = 524288,
- WriteMessage = 4
- }
-}
+using System; + +namespace System.Messaging +{ + [Flags] + [Serializable] + public enum MessageQueueAccessRights + { + ChangeQueuePermissions = 262144, + DeleteJournalMessage = 8, + DeleteMessage = 1, + DeleteQueue = 65536, + FullControl = 983103, + GenericRead = 131115, + GenericWrite = 131108, + GetQueuePermissions = 131072, + GetQueueProperties = 32, + PeekMessage = 2, + ReceiveJournalMessage = 10, + ReceiveMessage = 3, + SetQueueProperties = 16, + TakeQueueOwnership = 524288, + WriteMessage = 4 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueCriteria.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueCriteria.cs index 885edc8eefd..676e48f55eb 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueCriteria.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueCriteria.cs @@ -1,206 +1,206 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker, Rafael Teixeira
-//
-
-//
-// 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 class MessageQueueCriteria
- {
- public MessageQueueCriteria()
- {
- ClearAll();
- }
-
- private bool setCategory;
- private Guid category;
- public Guid Category
- {
- get
- {
- if (!setCategory)
- throw new InvalidOperationException();
- return category;
- }
- set
- {
- category = value;
- setCategory = true;
- }
- }
-
- private bool setCreatedAfter;
- private DateTime createdAfter;
- public DateTime CreatedAfter
- {
- get
- {
- if (!setCreatedAfter)
- throw new InvalidOperationException();
- return createdAfter;
- }
- set
- {
- createdAfter = value;
- setCreatedAfter = true;
- }
- }
-
- private bool setCreatedBefore;
- private DateTime createdBefore;
- public DateTime CreatedBefore
- {
- get
- {
- if (!setCreatedBefore)
- throw new InvalidOperationException();
- return createdBefore;
- }
- set
- {
- createdBefore = value;
- setCreatedBefore = true;
- }
- }
-
- private bool setLabel;
- private string label;
- public string Label
- {
- get
- {
- if (!setLabel)
- throw new InvalidOperationException();
- return label;
- }
- set
- {
- label = value;
- setLabel = true;
- }
- }
-
- [MonoTODO]
- private bool invalidMachineName(string name)
- {
- return false;
- }
-
- private bool setMachineName;
- private string machineName;
- public string MachineName
- {
- get
- {
- if (!setMachineName)
- throw new InvalidOperationException();
- return machineName;
- }
- set
- {
- if (invalidMachineName(value))
- throw new InvalidOperationException();
- machineName = value;
- setMachineName = true;
- }
- }
-
- private bool setModifiedAfter;
- private DateTime modifiedAfter;
- public DateTime ModifiedAfter
- {
- get
- {
- if (!setModifiedAfter)
- throw new InvalidOperationException();
- return modifiedAfter;
- }
- set
- {
- modifiedAfter = value;
- setModifiedAfter = true;
- }
- }
-
- private bool setModifiedBefore;
- private DateTime modifiedBefore;
- public DateTime ModifiedBefore
- {
- get
- {
- if (!setModifiedBefore)
- throw new InvalidOperationException();
- return modifiedBefore;
- }
- set
- {
- modifiedBefore = value;
- setModifiedBefore = true;
- }
- }
-
- public void ClearAll()
- {
- setCategory = false;
- setCreatedAfter = false;
- setCreatedBefore = false;
- setLabel = false;
- setMachineName = false;
- setModifiedAfter = false;
- setModifiedBefore = false;
- }
-
- // To be called by the MessageQueue.GetPublicQueues(MessageQueueCriteria criteria) method
- internal bool Match(
- Guid category,
- DateTime created,
- string label,
- string machineName,
- DateTime modified)
- {
- if (setCategory && this.category != category)
- return false;
- if (setCreatedAfter && created < createdAfter)
- return false;
- if (setCreatedBefore && created > createdBefore)
- return false;
- if (setLabel && this.label != label)
- return false;
- if (setMachineName && this.machineName != machineName)
- return false;
- if (setModifiedAfter && modified < modifiedAfter)
- return false;
- if (setModifiedBefore && modified > modifiedBefore)
- return false;
- return true;
- }
-
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker, Rafael Teixeira +// + +// +// 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 class MessageQueueCriteria + { + public MessageQueueCriteria() + { + ClearAll(); + } + + private bool setCategory; + private Guid category; + public Guid Category + { + get + { + if (!setCategory) + throw new InvalidOperationException(); + return category; + } + set + { + category = value; + setCategory = true; + } + } + + private bool setCreatedAfter; + private DateTime createdAfter; + public DateTime CreatedAfter + { + get + { + if (!setCreatedAfter) + throw new InvalidOperationException(); + return createdAfter; + } + set + { + createdAfter = value; + setCreatedAfter = true; + } + } + + private bool setCreatedBefore; + private DateTime createdBefore; + public DateTime CreatedBefore + { + get + { + if (!setCreatedBefore) + throw new InvalidOperationException(); + return createdBefore; + } + set + { + createdBefore = value; + setCreatedBefore = true; + } + } + + private bool setLabel; + private string label; + public string Label + { + get + { + if (!setLabel) + throw new InvalidOperationException(); + return label; + } + set + { + label = value; + setLabel = true; + } + } + + [MonoTODO] + private bool invalidMachineName(string name) + { + return false; + } + + private bool setMachineName; + private string machineName; + public string MachineName + { + get + { + if (!setMachineName) + throw new InvalidOperationException(); + return machineName; + } + set + { + if (invalidMachineName(value)) + throw new InvalidOperationException(); + machineName = value; + setMachineName = true; + } + } + + private bool setModifiedAfter; + private DateTime modifiedAfter; + public DateTime ModifiedAfter + { + get + { + if (!setModifiedAfter) + throw new InvalidOperationException(); + return modifiedAfter; + } + set + { + modifiedAfter = value; + setModifiedAfter = true; + } + } + + private bool setModifiedBefore; + private DateTime modifiedBefore; + public DateTime ModifiedBefore + { + get + { + if (!setModifiedBefore) + throw new InvalidOperationException(); + return modifiedBefore; + } + set + { + modifiedBefore = value; + setModifiedBefore = true; + } + } + + public void ClearAll() + { + setCategory = false; + setCreatedAfter = false; + setCreatedBefore = false; + setLabel = false; + setMachineName = false; + setModifiedAfter = false; + setModifiedBefore = false; + } + + // To be called by the MessageQueue.GetPublicQueues(MessageQueueCriteria criteria) method + internal bool Match( + Guid category, + DateTime created, + string label, + string machineName, + DateTime modified) + { + if (setCategory && this.category != category) + return false; + if (setCreatedAfter && created < createdAfter) + return false; + if (setCreatedBefore && created > createdBefore) + return false; + if (setLabel && this.label != label) + return false; + if (setMachineName && this.machineName != machineName) + return false; + if (setModifiedAfter && modified < modifiedAfter) + return false; + if (setModifiedBefore && modified > modifiedBefore) + return false; + return true; + } + + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueEnumerator.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueEnumerator.cs index 54923099c36..31eff306f8a 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueEnumerator.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueEnumerator.cs @@ -1,110 +1,110 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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;
-using System.Collections;
-
-namespace System.Messaging
-{
- public class MessageQueueEnumerator : MarshalByRefObject, IEnumerator, IDisposable
- {
- private bool disposed;
- private ArrayList queueList;
- private int currentIndex;
-
- internal MessageQueueEnumerator (ArrayList queueList)
- {
- this.queueList = queueList;
- this.currentIndex = -1;
- }
-
- public MessageQueue Current
- {
- get
- {
- if (currentIndex < 0 || currentIndex >= queueList.Count)
- return null;
- return (MessageQueue) queueList[currentIndex];
- }
- }
-
- object IEnumerator.Current
- {
- get
- {
- if (currentIndex < 0 || currentIndex >= queueList.Count)
- return null;
- return queueList[currentIndex];
- }
- }
-
- public IntPtr LocatorHandle
- {
- [MonoTODO]
- get
- {
- throw new NotImplementedException ();
- }
- }
-
- [MonoTODO]
- public void Close ()
- {
- }
-
- public void Dispose ()
- {
- Dispose (true);
- GC.SuppressFinalize (this);
- }
-
- protected virtual void Dispose (bool disposing)
- {
- Close ();
- disposed = true;
- }
-
- public bool MoveNext ()
- {
- return (++currentIndex) < queueList.Count;
- }
-
- public void Reset ()
- {
- currentIndex = -1;
- }
-
- ~MessageQueueEnumerator ()
- {
- if (!disposed)
- Dispose (false);
- }
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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; +using System.Collections; + +namespace System.Messaging +{ + public class MessageQueueEnumerator : MarshalByRefObject, IEnumerator, IDisposable + { + private bool disposed; + private ArrayList queueList; + private int currentIndex; + + internal MessageQueueEnumerator (ArrayList queueList) + { + this.queueList = queueList; + this.currentIndex = -1; + } + + public MessageQueue Current + { + get + { + if (currentIndex < 0 || currentIndex >= queueList.Count) + return null; + return (MessageQueue) queueList[currentIndex]; + } + } + + object IEnumerator.Current + { + get + { + if (currentIndex < 0 || currentIndex >= queueList.Count) + return null; + return queueList[currentIndex]; + } + } + + public IntPtr LocatorHandle + { + [MonoTODO] + get + { + throw new NotImplementedException (); + } + } + + [MonoTODO] + public void Close () + { + } + + public void Dispose () + { + Dispose (true); + GC.SuppressFinalize (this); + } + + protected virtual void Dispose (bool disposing) + { + Close (); + disposed = true; + } + + public bool MoveNext () + { + return (++currentIndex) < queueList.Count; + } + + public void Reset () + { + currentIndex = -1; + } + + ~MessageQueueEnumerator () + { + if (!disposed) + Dispose (false); + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueErrorCode.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueErrorCode.cs index 04b00dbbf0b..6b21365bfc6 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueErrorCode.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueErrorCode.cs @@ -1,147 +1,147 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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
-{
- [Serializable]
- public enum MessageQueueErrorCode
- {
- AccessDenied = -1072824283,
- BadSecurityContext = -1072824267,
- Base = -1072824320,
- BufferOverflow = -1072824294,
- CannotCreateCertificateStore = -1072824209,
- CannotCreateHashEx = -1072824191,
- CannotCreateOnGlobalCatalog = -1072824201,
- CannotGetDistinguishedName = -1072824194,
- CannotGrantAddGuid = -1072824206,
- CannotHashDataEx = -1072824193,
- CannotImpersonateClient = -1072824284,
- CannotJoinDomain = -1072824202,
- CannotLoadMsmqOcm = -1072824205,
- CannotOpenCertificateStore = -1072824208,
- CannotSetCryptographicSecurityDescriptor = -1072824212,
- CannotSignDataEx = -1072824192,
- CertificateNotProvided = -1072824211,
- ComputerDoesNotSupportEncryption = -1072824269,
- CorruptedInternalCertificate = -1072824275,
- CorruptedPersonalCertStore = -1072824271,
- CorruptedQueueWasDeleted = -1072824216,
- CorruptedSecurityData = -1072824272,
- CouldNotGetAccountInfo = -1072824265,
- CouldNotGetUserSid = -1072824266,
- DeleteConnectedNetworkInUse = -1072824248,
- DependentClientLicenseOverflow = -1072824217,
- DsError = -1072824253,
- DsIsFull = -1072824254,
- DtcConnect = -1072824244,
- EncryptionProviderNotSupported = -1072824213,
- FailVerifySignatureEx = -1072824190,
- FormatNameBufferTooSmall = -1072824289,
- Generic = -1072824319,
- GuidNotMatching = -1072824200,
- IllegalContext = -1072824229,
- IllegalCriteriaColumns = -1072824264,
- IllegalCursorAction = -1072824292,
- IllegalEnterpriseOperation = -1072824207,
- IllegalFormatName = -1072824290,
- IllegalMessageProperties = -1072824255,
- IllegalOperation = -1072824220,
- IllegalPrivateProperties = -1072824197,
- IllegalPropertyId = -1072824263,
- IllegalPropertySize = -1072824261,
- IllegalPropertyValue = -1072824296,
- IllegalPropertyVt = -1072824295,
- IllegalQueuePathName = -1072824300,
- IllegalQueueProperties = -1072824259,
- IllegalRelation = -1072824262,
- IllegalRestrictionPropertyId = -1072824260,
- IllegalSecurityDescriptor = -1072824287,
- IllegalSort = -1072824304,
- IllegalSortPropertyId = -1072824228,
- IllegalUser = -1072824303,
- InsufficientProperties = -1072824257,
- InsufficientResources = -1072824281,
- InvalidCertificate = -1072824276,
- InvalidHandle = -1072824313,
- InvalidOwner = -1072824252,
- InvalidParameter = -1072824314,
- IOTimeout = -1072824293,
- LabelBufferTooSmall = -1072824226,
- MachineExists = -1072824256,
- MachineNotFound = -1072824307,
- MessageAlreadyReceived = -1072824291,
- MessageStorageFailed = -1072824278,
- MissingConnectorType = -1072824235,
- MqisReadOnlyMode = -1072824224,
- MqisServerEmpty = -1072824225,
- NoDs = -1072824301,
- NoEntryPointMsmqOcm = -1072824204,
- NoGlobalCatalogInDomain = -1072824196,
- NoInternalUserCertificate = -1072824273,
- NoMsmqServersOnDc = -1072824203,
- NoMsmqServersOnGlobalCatalog = -1072824195,
- NoResponseFromObjectServer = -1072824247,
- ObjectServerNotAvailable = -1072824246,
- OperationCanceled = -1072824312,
- PrivilegeNotHeld = -1072824282,
- Property = -1072824318,
- PropertyNotAllowed = -1072824258,
- ProviderNameBufferTooSmall = -1072824221,
- PublicKeyDoesNotExist = -1072824198,
- PublicKeyNotFound = -1072824199,
- QDnsPropertyNotSupported = -1072824210,
- QueueDeleted = -1072824230,
- QueueExists = -1072824315,
- QueueNotAvailable = -1072824245,
- QueueNotFound = -1072824317,
- RemoteMachineNotAvailable = -1072824215,
- ResultBufferTooSmall = -1072824250,
- SecurityDescriptorBufferTooSmall = -1072824285,
- SenderCertificateBufferTooSmall = -1072824277,
- SenderIdBufferTooSmall = -1072824286,
- ServiceNotAvailable = -1072824309,
- SharingViolation = -1072824311,
- SignatureBufferTooSmall = -1072824222,
- StaleHandle = -1072824234,
- SymmetricKeyBufferTooSmall = -1072824223,
- TransactionEnlist = -1072824232,
- TransactionImport = -1072824242,
- TransactionSequence = -1072824239,
- TransactionUsage = -1072824240,
- UnsupportedAccessMode = -1072824251,
- UnsupportedFormatNameOperation = -1072824288,
- UnsupportedOperation = -1072824214,
- UserBufferTooSmall = -1072824280,
- WksCantServeClient = -1072824218,
- WriteNotAllowed = -1072824219
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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 +{ + [Serializable] + public enum MessageQueueErrorCode + { + AccessDenied = -1072824283, + BadSecurityContext = -1072824267, + Base = -1072824320, + BufferOverflow = -1072824294, + CannotCreateCertificateStore = -1072824209, + CannotCreateHashEx = -1072824191, + CannotCreateOnGlobalCatalog = -1072824201, + CannotGetDistinguishedName = -1072824194, + CannotGrantAddGuid = -1072824206, + CannotHashDataEx = -1072824193, + CannotImpersonateClient = -1072824284, + CannotJoinDomain = -1072824202, + CannotLoadMsmqOcm = -1072824205, + CannotOpenCertificateStore = -1072824208, + CannotSetCryptographicSecurityDescriptor = -1072824212, + CannotSignDataEx = -1072824192, + CertificateNotProvided = -1072824211, + ComputerDoesNotSupportEncryption = -1072824269, + CorruptedInternalCertificate = -1072824275, + CorruptedPersonalCertStore = -1072824271, + CorruptedQueueWasDeleted = -1072824216, + CorruptedSecurityData = -1072824272, + CouldNotGetAccountInfo = -1072824265, + CouldNotGetUserSid = -1072824266, + DeleteConnectedNetworkInUse = -1072824248, + DependentClientLicenseOverflow = -1072824217, + DsError = -1072824253, + DsIsFull = -1072824254, + DtcConnect = -1072824244, + EncryptionProviderNotSupported = -1072824213, + FailVerifySignatureEx = -1072824190, + FormatNameBufferTooSmall = -1072824289, + Generic = -1072824319, + GuidNotMatching = -1072824200, + IllegalContext = -1072824229, + IllegalCriteriaColumns = -1072824264, + IllegalCursorAction = -1072824292, + IllegalEnterpriseOperation = -1072824207, + IllegalFormatName = -1072824290, + IllegalMessageProperties = -1072824255, + IllegalOperation = -1072824220, + IllegalPrivateProperties = -1072824197, + IllegalPropertyId = -1072824263, + IllegalPropertySize = -1072824261, + IllegalPropertyValue = -1072824296, + IllegalPropertyVt = -1072824295, + IllegalQueuePathName = -1072824300, + IllegalQueueProperties = -1072824259, + IllegalRelation = -1072824262, + IllegalRestrictionPropertyId = -1072824260, + IllegalSecurityDescriptor = -1072824287, + IllegalSort = -1072824304, + IllegalSortPropertyId = -1072824228, + IllegalUser = -1072824303, + InsufficientProperties = -1072824257, + InsufficientResources = -1072824281, + InvalidCertificate = -1072824276, + InvalidHandle = -1072824313, + InvalidOwner = -1072824252, + InvalidParameter = -1072824314, + IOTimeout = -1072824293, + LabelBufferTooSmall = -1072824226, + MachineExists = -1072824256, + MachineNotFound = -1072824307, + MessageAlreadyReceived = -1072824291, + MessageStorageFailed = -1072824278, + MissingConnectorType = -1072824235, + MqisReadOnlyMode = -1072824224, + MqisServerEmpty = -1072824225, + NoDs = -1072824301, + NoEntryPointMsmqOcm = -1072824204, + NoGlobalCatalogInDomain = -1072824196, + NoInternalUserCertificate = -1072824273, + NoMsmqServersOnDc = -1072824203, + NoMsmqServersOnGlobalCatalog = -1072824195, + NoResponseFromObjectServer = -1072824247, + ObjectServerNotAvailable = -1072824246, + OperationCanceled = -1072824312, + PrivilegeNotHeld = -1072824282, + Property = -1072824318, + PropertyNotAllowed = -1072824258, + ProviderNameBufferTooSmall = -1072824221, + PublicKeyDoesNotExist = -1072824198, + PublicKeyNotFound = -1072824199, + QDnsPropertyNotSupported = -1072824210, + QueueDeleted = -1072824230, + QueueExists = -1072824315, + QueueNotAvailable = -1072824245, + QueueNotFound = -1072824317, + RemoteMachineNotAvailable = -1072824215, + ResultBufferTooSmall = -1072824250, + SecurityDescriptorBufferTooSmall = -1072824285, + SenderCertificateBufferTooSmall = -1072824277, + SenderIdBufferTooSmall = -1072824286, + ServiceNotAvailable = -1072824309, + SharingViolation = -1072824311, + SignatureBufferTooSmall = -1072824222, + StaleHandle = -1072824234, + SymmetricKeyBufferTooSmall = -1072824223, + TransactionEnlist = -1072824232, + TransactionImport = -1072824242, + TransactionSequence = -1072824239, + TransactionUsage = -1072824240, + UnsupportedAccessMode = -1072824251, + UnsupportedFormatNameOperation = -1072824288, + UnsupportedOperation = -1072824214, + UserBufferTooSmall = -1072824280, + WksCantServeClient = -1072824218, + WriteNotAllowed = -1072824219 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermission.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermission.cs index f0a180611e3..ac39e8cd715 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermission.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermission.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging.MessageQueuePermission.cs
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
+// +// System.Messaging.MessageQueuePermission.cs +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) // Sebastien Pouliot <sebastien@ximian.com> -//
-// (C) 2003 Peter Van Isacker
+// +// (C) 2003 Peter Van Isacker // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining @@ -29,56 +29,56 @@ // using System.Globalization; -using System.Security;
-using System.Security.Permissions;
-
+using System.Security; +using System.Security.Permissions; + namespace System.Messaging { -
- [Serializable]
+ + [Serializable] public sealed class MessageQueuePermission: CodeAccessPermission, IUnrestrictedPermission { private const int version = 1; private MessageQueuePermissionEntryCollection _list; private bool _unrestricted; -
- public MessageQueuePermission ()
+ + public MessageQueuePermission () { - _list = new MessageQueuePermissionEntryCollection (this);
- }
-
+ _list = new MessageQueuePermissionEntryCollection (this); + } + public MessageQueuePermission (MessageQueuePermissionEntry[] permissionAccessEntries) - : this ()
+ : this () { foreach (MessageQueuePermissionEntry entry in permissionAccessEntries) - _list.Add (entry);
- }
-
- public MessageQueuePermission (PermissionState state)
- : this ()
- {
+ _list.Add (entry); + } + + public MessageQueuePermission (PermissionState state) + : this () + { _unrestricted = (state == PermissionState.Unrestricted); - }
-
- public MessageQueuePermission (MessageQueuePermissionAccess permissionAccess, string path)
- : this ()
- {
+ } + + public MessageQueuePermission (MessageQueuePermissionAccess permissionAccess, string path) + : this () + { MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry (permissionAccess, path); _list.Add (entry); - }
-
- public MessageQueuePermission (MessageQueuePermissionAccess permissionAccess,
- string machineName, string label, string category) : this ()
+ } + + public MessageQueuePermission (MessageQueuePermissionAccess permissionAccess, + string machineName, string label, string category) : this () { MessageQueuePermissionEntry entry = new MessageQueuePermissionEntry (permissionAccess, machineName, label, category); _list.Add (entry); - }
-
- public MessageQueuePermissionEntryCollection PermissionEntries {
- get { return _list; }
- }
-
- public override IPermission Copy ()
+ } + + public MessageQueuePermissionEntryCollection PermissionEntries { + get { return _list; } + } + + public override IPermission Copy () { if (_unrestricted) return new MessageQueuePermission (PermissionState.Unrestricted); @@ -87,17 +87,17 @@ namespace System.Messaging { foreach (MessageQueuePermissionEntry entry in _list) copy._list.Add (entry); return copy; - }
- }
+ } + } - public bool IsUnrestricted ()
- {
- return _unrestricted;
- }
-
- [MonoTODO]
- public override void FromXml (SecurityElement securityElement)
- {
+ public bool IsUnrestricted () + { + return _unrestricted; + } + + [MonoTODO] + public override void FromXml (SecurityElement securityElement) + { CheckSecurityElement (securityElement, "securityElement", version, version); // Note: we do not (yet) care about the return value // as we only accept version 1 (min/max values) @@ -105,39 +105,39 @@ namespace System.Messaging { _unrestricted = (IsUnrestricted (securityElement)); // TODO read elements - }
-
- [MonoTODO]
- public override IPermission Intersect (IPermission target)
+ } + + [MonoTODO] + public override IPermission Intersect (IPermission target) { - MessageQueuePermission mqp = Cast (target);
- return null;
- }
-
- [MonoTODO]
- public override bool IsSubsetOf (IPermission target)
- {
- MessageQueuePermission mqp = Cast (target);
- return false;
- }
-
- [MonoTODO]
- public override SecurityElement ToXml ()
+ MessageQueuePermission mqp = Cast (target); + return null; + } + + [MonoTODO] + public override bool IsSubsetOf (IPermission target) + { + MessageQueuePermission mqp = Cast (target); + return false; + } + + [MonoTODO] + public override SecurityElement ToXml () { SecurityElement se = Element (version); if (_unrestricted) se.AddAttribute ("Unrestricted", "true"); else { // TODO - }
- return se;
- }
-
- [MonoTODO]
- public override IPermission Union (IPermission target)
- {
- MessageQueuePermission mqp = Cast (target);
- return null;
+ } + return se; + } + + [MonoTODO] + public override IPermission Union (IPermission target) + { + MessageQueuePermission mqp = Cast (target); + return null; } // helpers @@ -265,5 +265,5 @@ namespace System.Messaging { msg = String.Format (msg, target.GetType (), expected); throw new ArgumentException (msg, "target"); } - }
-}
+ } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAccess.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAccess.cs index 71cab60717d..a7b8a62f737 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAccess.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAccess.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,19 +27,19 @@ // 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
-{
- [Flags]
- [Serializable]
- public enum MessageQueuePermissionAccess
- {
- Administer = 62,
- Browse = 2,
- None = 0,
- Peek = 10,
- Receive = 26,
- Send = 6
- }
-}
+using System; + +namespace System.Messaging +{ + [Flags] + [Serializable] + public enum MessageQueuePermissionAccess + { + Administer = 62, + Browse = 2, + None = 0, + Peek = 10, + Receive = 26, + Send = 6 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAttribute.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAttribute.cs index 07c0c20c118..c319f944b69 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAttribute.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionAttribute.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging.MessageQueuePermissionAttribute.cs
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
+// +// System.Messaging.MessageQueuePermissionAttribute.cs +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) // Sebastien Pouliot <sebastien@ximian.com> -//
-// (C) 2003 Peter Van Isacker
+// +// (C) 2003 Peter Van Isacker // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining @@ -28,15 +28,15 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System.Security;
-using System.Security.Permissions;
-
-namespace System.Messaging {
-
- [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct |
+using System.Security; +using System.Security.Permissions; + +namespace System.Messaging { + + [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Event, - AllowMultiple=true, Inherited=false)]
- [Serializable]
+ AllowMultiple=true, Inherited=false)] + [Serializable] public class MessageQueuePermissionAttribute: CodeAccessSecurityAttribute { private MessageQueuePermissionAccess _permissionAccess; @@ -44,61 +44,61 @@ namespace System.Messaging { private string _label; private string _category; private string _path; -
+ public MessageQueuePermissionAttribute (SecurityAction action) - :base (action)
- {
- }
-
- public string Category {
- get { return _category; }
+ :base (action) + { + } + + public string Category { + get { return _category; } set { if (value == null) throw new InvalidOperationException ("null"); _category = value; - }
- }
-
- public string Label {
- get { return _label; }
+ } + } + + public string Label { + get { return _label; } set { if (value == null) throw new InvalidOperationException ("null"); _label = value; - }
- }
-
- public string MachineName {
- get { return _machineName; }
+ } + } + + public string MachineName { + get { return _machineName; } set { if (value == null) throw new InvalidOperationException ("null"); MessageQueuePermission.ValidateMachineName (value); _machineName = value; - }
- }
-
- public string Path {
- get { return _path; }
+ } + } + + public string Path { + get { return _path; } set { if (value == null) throw new InvalidOperationException ("null"); MessageQueuePermission.ValidatePath (value); _path = value; - }
- }
-
- public MessageQueuePermissionAccess PermissionAccess {
- get { return _permissionAccess; }
- set { _permissionAccess = value; }
- }
-
- public override IPermission CreatePermission ()
+ } + } + + public MessageQueuePermissionAccess PermissionAccess { + get { return _permissionAccess; } + set { _permissionAccess = value; } + } + + public override IPermission CreatePermission () { if (base.Unrestricted) return new MessageQueuePermission (PermissionState.Unrestricted); - else
+ else return new MessageQueuePermission (_permissionAccess, _machineName, _label, _category); - }
- }
-}
+ } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntry.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntry.cs index df740995e52..c9c96af2ff8 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntry.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntry.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging.MessageQueuePermissionEntry.cs
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
+// +// System.Messaging.MessageQueuePermissionEntry.cs +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) // Sebastien Pouliot <sebastien@ximian.com> -//
-// (C) 2003 Peter Van Isacker
+// +// (C) 2003 Peter Van Isacker // Copyright (C) 2004 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining @@ -29,8 +29,8 @@ // namespace System.Messaging { -
- [Serializable]
+ + [Serializable] public class MessageQueuePermissionEntry { private MessageQueuePermissionAccess _permissionAccess; @@ -38,47 +38,47 @@ namespace System.Messaging { private string _label; private string _category; private string _path; -
- public MessageQueuePermissionEntry (MessageQueuePermissionAccess permissionAccess, string path)
+ + public MessageQueuePermissionEntry (MessageQueuePermissionAccess permissionAccess, string path) { if (path == null) - throw new ArgumentNullException ("path");
+ throw new ArgumentNullException ("path"); MessageQueuePermission.ValidatePath (path); _permissionAccess = permissionAccess; - _path = path;
- }
-
- public MessageQueuePermissionEntry (MessageQueuePermissionAccess permissionAccess, string machineName, string label, string category)
+ _path = path; + } + + public MessageQueuePermissionEntry (MessageQueuePermissionAccess permissionAccess, string machineName, string label, string category) { if (machineName == null) - throw new ArgumentNullException ("machineName");
+ throw new ArgumentNullException ("machineName"); MessageQueuePermission.ValidateMachineName (machineName); _permissionAccess = permissionAccess; _machineName = machineName; _label = label; _category = category; - }
-
- public string Category {
- get { return _category; }
- }
-
- public string Label {
- get { return _label; }
- }
-
- public string MachineName {
- get { return _machineName; }
- }
-
- public string Path {
- get { return _path; }
- }
-
- public MessageQueuePermissionAccess PermissionAccess {
- get { return _permissionAccess; }
- }
- }
-}
+ } + + public string Category { + get { return _category; } + } + + public string Label { + get { return _label; } + } + + public string MachineName { + get { return _machineName; } + } + + public string Path { + get { return _path; } + } + + public MessageQueuePermissionAccess PermissionAccess { + get { return _permissionAccess; } + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntryCollection.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntryCollection.cs index d89042e1455..f11c967d6bd 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntryCollection.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueuePermissionEntryCollection.cs @@ -1,135 +1,135 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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;
-using System.Collections;
-
-namespace System.Messaging
-{
- [Serializable]
- public class MessageQueuePermissionEntryCollection: CollectionBase
- {
- private MessageQueuePermission owner;
-
- internal MessageQueuePermissionEntryCollection (MessageQueuePermission owner)
- {
- this.owner = owner;
- }
-
- public MessageQueuePermissionEntry this[int index]
- {
- get
- {
- return ((MessageQueuePermissionEntry) base.List[index]);
- }
- set
- {
- base.List[index] = value;
- }
- }
-
- public int Add(MessageQueuePermissionEntry value)
- {
- return base.List.Add (value);
- }
-
- public void AddRange(MessageQueuePermissionEntry[] value)
- {
- if (value == null)
- {
- throw new ArgumentNullException ("value");
-
- }
- for (int counter = 0; counter < value.Length; counter++)
- {
- this.Add (value[counter]);
- }
- }
-
- public void AddRange(MessageQueuePermissionEntryCollection value)
- {
- if (value == null)
- {
- throw new ArgumentNullException ("value");
-
- }
- int entryCount = value.Count;
- for (int counter = 0; counter < entryCount; counter++)
- {
- this.Add (value[counter]);
- }
- }
-
- public bool Contains(MessageQueuePermissionEntry value)
- {
- return base.List.Contains (value);
- }
-
- public void CopyTo(MessageQueuePermissionEntry[] array,int index)
- {
- base.List.CopyTo (array, index);
- }
-
- [MonoTODO]
- public int IndexOf(MessageQueuePermissionEntry value)
- {
- return base.List.IndexOf (value);
- }
-
- public void Insert(int index, MessageQueuePermissionEntry value)
- {
- base.List.Insert (index, value);
- }
-
- public void Remove(MessageQueuePermissionEntry value)
- {
- base.List.Remove (value);
- }
-
- [MonoTODO]
- protected override void OnClear()
- {
- }
-
- [MonoTODO]
- protected override void OnInsert(int index,object value)
- {
- }
-
- [MonoTODO]
- protected override void OnRemove(int index,object value)
- {
- }
-
- [MonoTODO]
- protected override void OnSet(int index,object oldValue,object newValue)
- {
- }
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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; +using System.Collections; + +namespace System.Messaging +{ + [Serializable] + public class MessageQueuePermissionEntryCollection: CollectionBase + { + private MessageQueuePermission owner; + + internal MessageQueuePermissionEntryCollection (MessageQueuePermission owner) + { + this.owner = owner; + } + + public MessageQueuePermissionEntry this[int index] + { + get + { + return ((MessageQueuePermissionEntry) base.List[index]); + } + set + { + base.List[index] = value; + } + } + + public int Add(MessageQueuePermissionEntry value) + { + return base.List.Add (value); + } + + public void AddRange(MessageQueuePermissionEntry[] value) + { + if (value == null) + { + throw new ArgumentNullException ("value"); + + } + for (int counter = 0; counter < value.Length; counter++) + { + this.Add (value[counter]); + } + } + + public void AddRange(MessageQueuePermissionEntryCollection value) + { + if (value == null) + { + throw new ArgumentNullException ("value"); + + } + int entryCount = value.Count; + for (int counter = 0; counter < entryCount; counter++) + { + this.Add (value[counter]); + } + } + + public bool Contains(MessageQueuePermissionEntry value) + { + return base.List.Contains (value); + } + + public void CopyTo(MessageQueuePermissionEntry[] array,int index) + { + base.List.CopyTo (array, index); + } + + [MonoTODO] + public int IndexOf(MessageQueuePermissionEntry value) + { + return base.List.IndexOf (value); + } + + public void Insert(int index, MessageQueuePermissionEntry value) + { + base.List.Insert (index, value); + } + + public void Remove(MessageQueuePermissionEntry value) + { + base.List.Remove (value); + } + + [MonoTODO] + protected override void OnClear() + { + } + + [MonoTODO] + protected override void OnInsert(int index,object value) + { + } + + [MonoTODO] + protected override void OnRemove(int index,object value) + { + } + + [MonoTODO] + protected override void OnSet(int index,object oldValue,object newValue) + { + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueTransaction.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueTransaction.cs index 122a26f3904..58df50edc21 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueTransaction.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueTransaction.cs @@ -1,12 +1,12 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -30,32 +30,32 @@ // using System; -using Mono.Messaging;
-
-namespace System.Messaging
-{
-
- // TODO: have to comply with 'This type is safe for multithreaded operations'
- public class MessageQueueTransaction : IDisposable
- {
+using Mono.Messaging; + +namespace System.Messaging +{ + + // TODO: have to comply with 'This type is safe for multithreaded operations' + public class MessageQueueTransaction : IDisposable + { private readonly IMessageQueueTransaction delegateTx; private readonly object syncObj = new object (); - private bool isDisposed = false;
-
- public MessageQueueTransaction () : this (GetMessageQueueTransaction ())
- {
+ private bool isDisposed = false; + + public MessageQueueTransaction () : this (GetMessageQueueTransaction ()) + { } internal MessageQueueTransaction (IMessageQueueTransaction delegateTx) { this.delegateTx = delegateTx; - }
-
- public MessageQueueTransactionStatus Status
- {
+ } + + public MessageQueueTransactionStatus Status + { get { return (MessageQueueTransactionStatus) delegateTx.Status; - }
+ } } internal IMessageQueueTransaction DelegateTx { @@ -65,23 +65,23 @@ namespace System.Messaging private static IMessageQueueTransaction GetMessageQueueTransaction () { return MessagingProviderLocator.GetProvider ().CreateMessageQueueTransaction (); - }
-
- public void Abort ()
+ } + + public void Abort () { - delegateTx.Abort ();
- }
-
- public void Begin ()
+ delegateTx.Abort (); + } + + public void Begin () { - delegateTx.Begin ();
- }
-
- public void Commit ()
+ delegateTx.Begin (); + } + + public void Commit () { - delegateTx.Commit ();
- }
-
+ delegateTx.Commit (); + } + public void Dispose () { Dispose (true); @@ -96,10 +96,10 @@ namespace System.Messaging } } } -
- ~MessageQueueTransaction()
+ + ~MessageQueueTransaction() { - Dispose ();
- }
- }
-}
+ Dispose (); + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionStatus.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionStatus.cs index e00eab2254b..b653fbd8e94 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionStatus.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionStatus.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,16 +27,16 @@ // 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
-{
- [Serializable]
- public enum MessageQueueTransactionStatus
- {
- Aborted = 0,
- Committed = 1,
- Initialized = 2,
- Pending = 3
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum MessageQueueTransactionStatus + { + Aborted = 0, + Committed = 1, + Initialized = 2, + Pending = 3 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionType.cs b/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionType.cs index b77099b9fe4..f56b5915009 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionType.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageQueueTransactionType.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,15 +27,15 @@ // 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
-{
- [Serializable]
- public enum MessageQueueTransactionType
- {
- Automatic = 1,
- None = 0,
- Single = 3
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum MessageQueueTransactionType + { + Automatic = 1, + None = 0, + Single = 3 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessageType.cs b/mcs/class/System.Messaging/System.Messaging/MessageType.cs index 1e6d98a6eb5..478dc0129b9 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessageType.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessageType.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,15 +27,15 @@ // 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
-{
- [Serializable]
- public enum MessageType
- {
- Acknowledgment = 1,
- Normal = 2,
- Report = 3
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum MessageType + { + Acknowledgment = 1, + Normal = 2, + Report = 3 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/MessagingDescriptionAttribute.cs b/mcs/class/System.Messaging/System.Messaging/MessagingDescriptionAttribute.cs index 9e3eae92100..589080f768d 100644 --- a/mcs/class/System.Messaging/System.Messaging/MessagingDescriptionAttribute.cs +++ b/mcs/class/System.Messaging/System.Messaging/MessagingDescriptionAttribute.cs @@ -1,12 +1,12 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -28,26 +28,26 @@ // 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;
-using System.ComponentModel;
-
-namespace System.Messaging
-{
- [AttributeUsage(AttributeTargets.All)]
- public class MessagingDescriptionAttribute: DescriptionAttribute
- {
- [MonoTODO ("localization")]
- public MessagingDescriptionAttribute(string description) : base(description)
- {
- }
-
- [MonoTODO ("localization")]
- public override string Description
- {
- get
- {
- return base.Description;
- }
- }
- }
-}
+using System; +using System.ComponentModel; + +namespace System.Messaging +{ + [AttributeUsage(AttributeTargets.All)] + public class MessagingDescriptionAttribute: DescriptionAttribute + { + [MonoTODO ("localization")] + public MessagingDescriptionAttribute(string description) : base(description) + { + } + + [MonoTODO ("localization")] + public override string Description + { + get + { + return base.Description; + } + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventArgs.cs b/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventArgs.cs index f282296ecdf..70472ee471b 100644 --- a/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventArgs.cs +++ b/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventArgs.cs @@ -1,12 +1,12 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -28,40 +28,40 @@ // 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;
-using System.Runtime.Remoting.Messaging;
-
-namespace System.Messaging
-{
- public class PeekCompletedEventArgs : EventArgs
- {
- private MessageQueue _sender;
- private IAsyncResult _result;
- private Message _message;
-
- internal PeekCompletedEventArgs(MessageQueue sender, IAsyncResult result)
- {
- _sender = sender;
- _result = result;
- }
-
- public IAsyncResult AsyncResult
- {
- get { return _result; }
- set { _result = value; }
- }
-
- public Message Message
- {
- get
- {
- if (_message == null)
- {
- _message = _sender.EndPeek (_result);
- }
- return _message;
- }
- }
- }
-}
+ +using System; +using System.Runtime.Remoting.Messaging; + +namespace System.Messaging +{ + public class PeekCompletedEventArgs : EventArgs + { + private MessageQueue _sender; + private IAsyncResult _result; + private Message _message; + + internal PeekCompletedEventArgs(MessageQueue sender, IAsyncResult result) + { + _sender = sender; + _result = result; + } + + public IAsyncResult AsyncResult + { + get { return _result; } + set { _result = value; } + } + + public Message Message + { + get + { + if (_message == null) + { + _message = _sender.EndPeek (_result); + } + return _message; + } + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventHandler.cs b/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventHandler.cs index a202b28e4fe..3ec55d1beeb 100644 --- a/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventHandler.cs +++ b/mcs/class/System.Messaging/System.Messaging/PeekCompletedEventHandler.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,11 +27,11 @@ // 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
-{
- [Serializable]
- public delegate void PeekCompletedEventHandler(object sender, PeekCompletedEventArgs e);
-
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public delegate void PeekCompletedEventHandler(object sender, PeekCompletedEventArgs e); + +} diff --git a/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventArgs.cs b/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventArgs.cs index 4d79c6e6f05..6abe1511072 100644 --- a/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventArgs.cs +++ b/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventArgs.cs @@ -1,12 +1,12 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -28,39 +28,39 @@ // 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;
-using System.Runtime.Remoting.Messaging;
-
-namespace System.Messaging
-{
- public class ReceiveCompletedEventArgs: EventArgs
- {
- private MessageQueue _sender;
- private IAsyncResult _result;
- private Message _message;
-
- internal ReceiveCompletedEventArgs (MessageQueue sender, IAsyncResult result)
- {
- _sender = sender;
- _result = result;
- }
-
- public IAsyncResult AsyncResult
- {
- get { return _result; }
- set { _result = value; }
- }
-
- public Message Message
- {
- get
- {
- if (_message == null)
- {
- _message = _sender.EndPeek (_result);
- }
- return _message;
- }
- }
- }
-}
+using System; +using System.Runtime.Remoting.Messaging; + +namespace System.Messaging +{ + public class ReceiveCompletedEventArgs: EventArgs + { + private MessageQueue _sender; + private IAsyncResult _result; + private Message _message; + + internal ReceiveCompletedEventArgs (MessageQueue sender, IAsyncResult result) + { + _sender = sender; + _result = result; + } + + public IAsyncResult AsyncResult + { + get { return _result; } + set { _result = value; } + } + + public Message Message + { + get + { + if (_message == null) + { + _message = _sender.EndPeek (_result); + } + return _message; + } + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventHandler.cs b/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventHandler.cs index a0062583a9b..75e07d9aa5c 100644 --- a/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventHandler.cs +++ b/mcs/class/System.Messaging/System.Messaging/ReceiveCompletedEventHandler.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,11 +27,11 @@ // 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
-{
- [Serializable]
- public delegate void ReceiveCompletedEventHandler(object sender, ReceiveCompletedEventArgs e);
-
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public delegate void ReceiveCompletedEventHandler(object sender, ReceiveCompletedEventArgs e); + +} diff --git a/mcs/class/System.Messaging/System.Messaging/StandardAccessRights.cs b/mcs/class/System.Messaging/System.Messaging/StandardAccessRights.cs index 2d59fca768c..55a6ce29897 100644 --- a/mcs/class/System.Messaging/System.Messaging/StandardAccessRights.cs +++ b/mcs/class/System.Messaging/System.Messaging/StandardAccessRights.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) 2003 Peter Van Isacker
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) 2003 Peter Van Isacker +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,24 +27,24 @@ // 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
-{
- [Flags]
- [Serializable]
- public enum StandardAccessRights
- {
- All = 2031616,
- Delete = 65536,
- Execute = 131072,
- ModifyOwner = 524288,
- None = 0,
- Read = 131072,
- ReadSecurity = 131072,
- Required = 851968,
- Synchronize = 1048576,
- Write = 131072,
- WriteSecurity = 262144
- }
-}
+using System; + +namespace System.Messaging +{ + [Flags] + [Serializable] + public enum StandardAccessRights + { + All = 2031616, + Delete = 65536, + Execute = 131072, + ModifyOwner = 524288, + None = 0, + Read = 131072, + ReadSecurity = 131072, + Required = 851968, + Synchronize = 1048576, + Write = 131072, + WriteSecurity = 262144 + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/Trustee.cs b/mcs/class/System.Messaging/System.Messaging/Trustee.cs index 981e526e6db..08837e85a5b 100644 --- a/mcs/class/System.Messaging/System.Messaging/Trustee.cs +++ b/mcs/class/System.Messaging/System.Messaging/Trustee.cs @@ -1,89 +1,89 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
-//
-// (C) 2003 Peter Van Isacker
-//
-
-//
-// 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 class Trustee
- {
- [MonoTODO]
- public Trustee()
- {
- this.name = null;
- this.systemName = null;
- this.trusteeType = TrusteeType.Unknown;
- }
-
- [MonoTODO("What about systemName?")]
- public Trustee(string name)
- {
- this.name = name;
- this.systemName = null;
- this.trusteeType = TrusteeType.Unknown;
- }
-
- private string name;
- private string systemName;
- private TrusteeType trusteeType;
-
- public Trustee(string name, string systemName)
- {
- this.name = name;
- this.systemName = systemName;
- this.trusteeType = TrusteeType.Unknown;
- }
-
- public Trustee(string name, string systemName, TrusteeType trusteeType)
- {
- this.name = name;
- this.systemName = systemName;
- this.trusteeType = trusteeType;
- }
-
- public string Name
- {
- get { return name; }
- set { name = value;}
- }
-
- public string SystemName
- {
- get { return systemName; }
- set { systemName = value;}
- }
-
- public TrusteeType TrusteeType
- {
- get { return trusteeType; }
- set { trusteeType = value;}
- }
- }
-}
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// Rafael Teixeira (rafaelteixeirabr@hotmail.com) +// +// (C) 2003 Peter Van Isacker +// + +// +// 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 class Trustee + { + [MonoTODO] + public Trustee() + { + this.name = null; + this.systemName = null; + this.trusteeType = TrusteeType.Unknown; + } + + [MonoTODO("What about systemName?")] + public Trustee(string name) + { + this.name = name; + this.systemName = null; + this.trusteeType = TrusteeType.Unknown; + } + + private string name; + private string systemName; + private TrusteeType trusteeType; + + public Trustee(string name, string systemName) + { + this.name = name; + this.systemName = systemName; + this.trusteeType = TrusteeType.Unknown; + } + + public Trustee(string name, string systemName, TrusteeType trusteeType) + { + this.name = name; + this.systemName = systemName; + this.trusteeType = trusteeType; + } + + public string Name + { + get { return name; } + set { name = value;} + } + + public string SystemName + { + get { return systemName; } + set { systemName = value;} + } + + public TrusteeType TrusteeType + { + get { return trusteeType; } + set { trusteeType = value;} + } + } +} diff --git a/mcs/class/System.Messaging/System.Messaging/TrusteeType.cs b/mcs/class/System.Messaging/System.Messaging/TrusteeType.cs index 62bacb74212..d87cebb4647 100644 --- a/mcs/class/System.Messaging/System.Messaging/TrusteeType.cs +++ b/mcs/class/System.Messaging/System.Messaging/TrusteeType.cs @@ -1,11 +1,11 @@ -//
-// System.Messaging
-//
-// Authors:
-// Peter Van Isacker (sclytrack@planetinternet.be)
-//
-// (C) Ximian, Inc. http://www.ximian.com
-//
+// +// System.Messaging +// +// Authors: +// Peter Van Isacker (sclytrack@planetinternet.be) +// +// (C) Ximian, Inc. http://www.ximian.com +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,18 +27,18 @@ // 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
-{
- [Serializable]
- public enum TrusteeType
- {
- Alias = 4,
- Computer = 5,
- Domain = 3,
- Group = 2,
- Unknown = 0,
- User = 1
- }
-}
+using System; + +namespace System.Messaging +{ + [Serializable] + public enum TrusteeType + { + Alias = 4, + Computer = 5, + Domain = 3, + Group = 2, + Unknown = 0, + User = 1 + } +} |