}\r
\r
#endregion //Properties\r
- \r
- \r
- [MonoTODO]\r
- ~AccessControlEntry()\r
- {\r
- }\r
}\r
}\r
}\r
[MonoTODO]\r
public void CopyTo(AccessControlEntry[] array, int index) {\r
- if (array == null) throw new ArgumentNullException();\r
- if (index < 0) throw new ArgumentOutOfRangeException(); \r
+ if (array == null) \r
+ throw new ArgumentNullException();\r
+ if (index < 0) \r
+ throw new ArgumentOutOfRangeException();\r
throw new NotImplementedException(); \r
}\r
[MonoTODO]\r
public void Remove(AccessControlEntry entry) {\r
throw new NotImplementedException();\r
}\r
- [MonoTODO]\r
- ~AccessControlList()\r
- {\r
- } \r
}\r
}\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
-using System;\r
\r
+using System;\r
\r
namespace System.Messaging \r
{\r
{\r
throw new NotImplementedException();\r
}\r
- \r
- [MonoTODO]\r
- ~ActiveXMessageFormatter()\r
- {\r
- }\r
}\r
}\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
+using System.ComponentModel;\r
using System.Runtime.Serialization.Formatters;\r
using System.Runtime.Serialization.Formatters.Binary;\r
\r
-namespace System.Messaging \r
+namespace System.Messaging\r
{\r
- public class BinaryMessageFormatter: IMessageFormatter, ICloneable \r
+ public class BinaryMessageFormatter : IMessageFormatter, ICloneable\r
{\r
- public BinaryMessageFormatter()\r
+ private BinaryFormatter _formatter;\r
+\r
+ public BinaryMessageFormatter ()\r
{\r
- TopObjectFormat = FormatterAssemblyStyle.Full;\r
- TypeFormat = FormatterTypeStyle.TypesWhenNeeded;\r
+ _formatter = new BinaryFormatter ();\r
}\r
- \r
- public BinaryMessageFormatter(FormatterAssemblyStyle topObjectFormat, FormatterTypeStyle typeFormat)\r
+\r
+ public BinaryMessageFormatter (FormatterAssemblyStyle topObjectFormat, FormatterTypeStyle typeFormat)\r
{\r
- TopObjectFormat = topObjectFormat;\r
- TypeFormat = typeFormat;\r
+ _formatter = new BinaryFormatter ();\r
+ _formatter.AssemblyFormat = topObjectFormat;\r
+ _formatter.TypeFormat = typeFormat;\r
+ }\r
+\r
+ [DefaultValue (0)]\r
+ [MessagingDescription ("MsgTopObjectFormat")]\r
+ public FormatterAssemblyStyle TopObjectFormat {\r
+ get {\r
+ return _formatter.AssemblyFormat;\r
+ }\r
+ set {\r
+ _formatter.AssemblyFormat = value;\r
+ }\r
+ }\r
+\r
+ [DefaultValue (0)]\r
+ [MessagingDescription ("MsgTypeFormat")]\r
+ public FormatterTypeStyle TypeFormat {\r
+ get {\r
+ return _formatter.TypeFormat;\r
+ }\r
+ set {\r
+ _formatter.TypeFormat = value;\r
+ }\r
}\r
- \r
- public FormatterAssemblyStyle TopObjectFormat;\r
- \r
- public FormatterTypeStyle TypeFormat;\r
- \r
- public bool CanRead(Message message) \r
+\r
+ [MonoTODO ("only return true if body type is binary")]\r
+ public bool CanRead (Message message)\r
{\r
if (message == null)\r
- throw new ArgumentNullException();\r
+ throw new ArgumentNullException ();\r
return message.BodyStream.CanRead;\r
}\r
- \r
- public object Read(Message message)\r
+\r
+ [MonoTODO ("throw InvalidOperationException if message body is not binary")]\r
+ public object Read (Message message)\r
{\r
if (message == null)\r
- throw new ArgumentNullException();\r
- \r
- BinaryFormatter bf = new BinaryFormatter();\r
- bf.AssemblyFormat = TopObjectFormat;\r
- bf.TypeFormat = TypeFormat;\r
- return bf.Deserialize(message.BodyStream);\r
+ throw new ArgumentNullException ();\r
+\r
+ return _formatter.Deserialize (message.BodyStream);\r
}\r
- \r
- public void Write(Message message, object obj)\r
+\r
+ [MonoTODO ("throw InvalidOperationException if message body is not binary")]\r
+ public void Write (Message message, object obj)\r
{\r
if (message == null)\r
- throw new ArgumentNullException();\r
- \r
- BinaryFormatter bf = new BinaryFormatter();\r
- bf.AssemblyFormat = TopObjectFormat;\r
- bf.TypeFormat = TypeFormat; \r
- bf.Serialize(message.BodyStream, obj);\r
- } \r
- \r
- public object Clone()\r
- {\r
- return new BinaryMessageFormatter(TopObjectFormat, TypeFormat);\r
+ throw new ArgumentNullException ();\r
+\r
+ _formatter.Serialize (message.BodyStream, obj);\r
}\r
- \r
- [MonoTODO]\r
- ~BinaryMessageFormatter()\r
+\r
+ public object Clone ()\r
{\r
+ return new BinaryMessageFormatter (TopObjectFormat, TypeFormat);\r
}\r
}\r
}\r
--- /dev/null
+2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * AccessControlEntry.cs: removed extra finalizer
+ * AccessControlList.cs: removed extra finalizer
+ * ActiveXMessageFormatter.cs: removed extra finalizer
+ * BinaryMessageFormatter.cs: public API fixes
+ * DefaultPropertiesToSend.cs: public API fixes
+ * IMessageFormatter.cs: public API fixes
+ * Message.cs: public API fixes
+ * MessageEnumerator.cs: public API fixes
+ * MessagePropertyFilter.cs: public API fixes
+ * MessageQueue.cs: public API fixes
+ * MessageQueueAccessControlEntry.cs: public API fixes
+ * MessageQueueEnumerator.cs: public API fixes
+ * MessageQueueException.cs: public API fixes
+ * MessageQueueInstaller.cs: public API fixes
+ * MessageQueuePermission.cs: public API fixes
+ * MessageQueuePermissionAttribute.cs: public API fixes
+ * MessageQueuePermissionEntry.cs: public API fixes
+ * MessageQueuePermissionEntryCollection.cs: public API
+ fixes
+ * MessagingDescriptionAttribute.cs: public API fixes
+ * PeekCompletedEventArgs.cs: public API fixes
+ * ReceiveCompletedEventArgs.cs: public API fixes
+ * Trustee.cs: removed extra finalizer
+ * XmlMessageFormatter.cs: public API fixes
+
+2004-05-29 Gert Driesen <drieseng@users.sourceforge.net>
+
+ * Acknowledgment.cs: added/corrected values, removed TODO
+ * MessageQueueErrorCode.cs: fixed typo
+ * MessageQueueAccessRights.cs: removed extra enum field
+
+2003-02-23 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
+ * added just files enough to compile a dummy DLL for now
-\r
//\r
// System.Messaging\r
//\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
+using System.ComponentModel;\r
+using System.ComponentModel.Design;\r
\r
namespace System.Messaging \r
{\r
+ [TypeConverter (typeof(ExpandableObjectConverter))]\r
public class DefaultPropertiesToSend \r
{\r
[MonoTODO]\r
public DefaultPropertiesToSend()\r
{\r
}\r
+\r
+ [DefaultValue (AcknowledgeTypes.None)]\r
+ [MessagingDescription ("MsgAcknowledgeType")]\r
public AcknowledgeTypes AcknowledgeType {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (null)]\r
+ [MessagingDescription ("MsgAdministrationQueue")]\r
public MessageQueue AdministrationQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (0)]\r
+ [MessagingDescription ("MsgAppSpecific")]\r
public int AppSpecific {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgAttachSenderId")]\r
public bool AttachSenderId {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (EncryptionAlgorithm.Rc2)]\r
+ [MessagingDescription ("MsgEncryptionAlgorithm")]\r
public EncryptionAlgorithm EncryptionAlgorithm {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [Editor ("System.ComponentModel.Design.ArrayEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]\r
+ [MessagingDescription ("MsgExtension")]\r
public byte[] Extension {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (HashAlgorithm.Md5)]\r
+ [MessagingDescription ("MsgHashAlgorithm")]\r
public HashAlgorithm HashAlgorithm {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue ("")]\r
+ [MessagingDescription ("MsgLabel")]\r
public string Label {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (MessagePriority.Normal)]\r
+ [MessagingDescription ("MsgPriority")]\r
public MessagePriority Priority {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgRecoverable")]\r
public bool Recoverable {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (null)]\r
+ [MessagingDescription ("MsgResponseQueue")]\r
public MessageQueue ResponseQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [TypeConverter (typeof(TimeoutConverter))]\r
+ [MessagingDescription ("MsgTimeToBeReceived")]\r
public TimeSpan TimeToBeReceived {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [TypeConverter (typeof(TimeoutConverter))]\r
+ [MessagingDescription ("MsgTimeToReachQueue")]\r
public TimeSpan TimeToReachQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (null)]\r
+ [MessagingDescription ("MsgTransactionStatusQueue")]\r
public MessageQueue TransactionStatusQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseAuthentication")]\r
public bool UseAuthentication {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseDeadLetterQueue")]\r
public bool UseDeadLetterQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseEncryption")]\r
public bool UseEncryption {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseJournalQueue")]\r
public bool UseJournalQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseTracing")]\r
public bool UseTracing {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
- [MonoTODO]\r
- ~DefaultPropertiesToSend()\r
- {\r
- }\r
}\r
}\r
//\r
\r
using System;\r
+using System.ComponentModel;\r
+using System.Messaging.Design;\r
\r
namespace System.Messaging \r
{\r
+ [TypeConverter (typeof(MessageFormatterConverter))]\r
public interface IMessageFormatter: ICloneable \r
{\r
bool CanRead(Message message);\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
using System.IO;\r
using System.ComponentModel;\r
\r
namespace System.Messaging \r
{\r
+ [DesignerAttribute ("System.Messaging.Design.MessageDesigner, " + Consts.AssemblySystem_Design)]\r
public class Message: Component \r
{\r
- \r
#region Constructor\r
\r
[MonoTODO]\r
public Message()\r
{\r
}\r
- \r
- //public Message(object body);\r
- //public Message(object body, IMessageFormatter formatter);\r
\r
+ [MonoTODO]\r
+ public Message (object body)\r
+ {\r
+ }\r
+\r
+ [MonoTODO]\r
+ public Message (object body, IMessageFormatter formatter)\r
+ {\r
+ }\r
\r
#endregion //Constructor\r
\r
[MonoTODO]\r
public static readonly TimeSpan InfiniteTimeout;\r
\r
- \r
#region Properties\r
- \r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAcknowledgeType")]\r
public AcknowledgeTypes AcknowledgeType {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAcknowledgement")]\r
public Acknowledgment Acknowledgment {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAdministrationQueue")]\r
public MessageQueue AdministrationQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAppSpecific")]\r
public int AppSpecific {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MsgArrivedTime")]\r
public DateTime ArrivedTime {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAttachSenderId")]\r
public bool AttachSenderId {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MsgAuthenticated")]\r
public bool Authenticated {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAuthenticationProviderName")]\r
public string AuthenticationProviderName {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgAuthenticationProviderType")]\r
public CryptographicProviderType AuthenticationProviderType {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [Browsable (false)]\r
public object Body {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [Editor ("System.ComponentModel.Design.BinaryEditor, " + Consts.AssemblySystem_Design, "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]\r
+ [MessagingDescription ("MsgBodyStream")]\r
public Stream BodyStream {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MsgBodyType")]\r
+ [ReadOnly (true)]\r
public int BodyType {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgConnectorType")]\r
public Guid ConnectorType {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgCorrelationId")]\r
public string CorrelationId {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription("MsgDestinationQueue")]\r
public MessageQueue DestinationQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgDestinationSymmetricKey")]\r
public byte[] DestinationSymmetricKey {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgDigitalSignature")]\r
public byte[] DigitalSignature {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgEncryptionAlgorithm")]\r
public EncryptionAlgorithm EncryptionAlgorithm {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgExtension")]\r
public byte[] Extension {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [Browsable(false)]\r
public IMessageFormatter Formatter {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgHashAlgorithm")]\r
public HashAlgorithm HashAlgorithm {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgId")]\r
public string Id {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription("MsgIsFirstInTransaction")]\r
public bool IsFirstInTransaction {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription("MsgIsLastInTransaction")]\r
public bool IsLastInTransaction {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgLabel")]\r
public string Label {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription("MsgMessageType")]\r
public MessageType MessageType {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgPriority")]\r
public MessagePriority Priority {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgRecoverable")]\r
public bool Recoverable {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgResponseQueue")]\r
public MessageQueue ResponseQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly(true)]\r
+ [MessagingDescription("MsgSenderCertificate")]\r
public byte[] SenderCertificate {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MsgSenderId")]\r
public byte[] SenderId {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgSenderVersion")]\r
public long SenderVersion {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgSentTime")]\r
public DateTime SentTime {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MsgSourceMachine")]\r
public string SourceMachine {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgTimeToBeReceived")]\r
+ [TypeConverter (typeof(TimeoutConverter))]\r
public TimeSpan TimeToBeReceived {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgTimeToReachQueue")]\r
+ [TypeConverter (typeof(TimeoutConverter))]\r
public TimeSpan TimeToReachQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MsgTransactionId")]\r
public string TransactionId {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgTransactionStatusQueue")]\r
public MessageQueue TransactionStatusQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgUseAuthentication")]\r
public bool UseAuthentication {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgUseDeadLetterQueue")]\r
public bool UseDeadLetterQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgUseEncryption")]\r
public bool UseEncryption {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgUseJournalQueue")]\r
public bool UseJournalQueue {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [ReadOnly (true)]\r
+ [MessagingDescription ("MsgUseTracing")]\r
public bool UseTracing {\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
+\r
#endregion //Properties\r
- \r
- \r
- [MonoTODO]\r
- ~Message()\r
- {\r
- }\r
}\r
}\r
{\r
public class MessageEnumerator: MarshalByRefObject, IEnumerator, IDisposable \r
{\r
+ [MonoTODO]\r
+ internal MessageEnumerator (MessageQueue owner)\r
+ {\r
+ }\r
+\r
public Message Current { \r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
{\r
throw new NotImplementedException();\r
}\r
- [MonoTODO]\r
+\r
public void Dispose()\r
{\r
- throw new NotImplementedException();\r
+ Dispose (true);\r
+ GC.SuppressFinalize (this);\r
}\r
- /*\r
- [MonoTODO]\r
+\r
protected virtual void Dispose(bool disposing)\r
{\r
- throw new NotImplementedException();\r
+ Close();\r
}\r
- */\r
+\r
[MonoTODO]\r
public bool MoveNext()\r
{\r
[MonoTODO]\r
public void Reset()\r
{\r
- throw new NotImplementedException();\r
- }\r
- /*\r
- [MonoTODO]\r
- public void Dispose()\r
- {\r
- throw new NotImplementedException();\r
- }\r
- */\r
- /*\r
- [MonoTODO]\r
- protected virtual void Dispose(bool disposing)\r
- {\r
- throw new NotImplementedException();\r
+ Close ();\r
}\r
- [MonoTODO]\r
- protected virtual void Dispose(bool disposing)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- */\r
+\r
[MonoTODO]\r
~MessageEnumerator()\r
{\r
+ Dispose(false);\r
}\r
}\r
}\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
+using System.ComponentModel;\r
\r
-namespace System.Messaging \r
+namespace System.Messaging\r
{\r
- public class MessagePropertyFilter \r
+ [TypeConverter (typeof(ExpandableObjectConverter))]\r
+ public class MessagePropertyFilter\r
{\r
private bool acknowledgeType = false;\r
private bool acknowledgment = false;\r
private bool useEncryption = false;\r
private bool useJournalQueue = false;\r
private bool useTracing = false;\r
- \r
+\r
[MonoTODO]\r
- public MessagePropertyFilter()\r
+ public MessagePropertyFilter ()\r
{\r
- \r
+\r
}\r
- \r
- public bool AcknowledgeType \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgAcknowledgeType")]\r
+ public bool AcknowledgeType\r
{\r
- get {return acknowledgeType;}\r
- set {acknowledgeType = value;}\r
+ get { return acknowledgeType; }\r
+ set { acknowledgeType = value; }\r
}\r
- \r
- public bool Acknowledgment \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgAcknowledgement")]\r
+ public bool Acknowledgment\r
{\r
- get {return acknowledgment;}\r
- set {acknowledgment = value;}\r
+ get { return acknowledgment; }\r
+ set { acknowledgment = value; }\r
}\r
- \r
- public bool AdministrationQueue \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgAdministrationQueue")]\r
+ public bool AdministrationQueue\r
{\r
- get {return administrationQueue;}\r
- set {administrationQueue = value;}\r
+ get { return administrationQueue; }\r
+ set { administrationQueue = value; }\r
}\r
- \r
- public bool AppSpecific \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgAppSpecific")]\r
+ public bool AppSpecific\r
{\r
- get{return appSpecific;}\r
- set{appSpecific = value;}\r
+ get { return appSpecific; }\r
+ set { appSpecific = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgArrivedTime")]\r
public bool ArrivedTime\r
{\r
- get {return arrivedTime;}\r
- set {arrivedTime = value;}\r
+ get { return arrivedTime; }\r
+ set { arrivedTime = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgAttachSenderId")]\r
public bool AttachSenderId\r
{\r
- get {return attachSenderId;}\r
- set {attachSenderId = value;}\r
+ get { return attachSenderId; }\r
+ set { attachSenderId = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgAuthenticated")]\r
public bool Authenticated\r
{\r
- get {return authenticated;}\r
- set {authenticated = value;}\r
+ get { return authenticated; }\r
+ set { authenticated = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgAuthenticationProviderName")]\r
public bool AuthenticationProviderName\r
{\r
- get {return authenticationProviderName;}\r
- set {authenticationProviderName = value;}\r
+ get { return authenticationProviderName; }\r
+ set { authenticationProviderName = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgAuthenticationProviderType")]\r
public bool AuthenticationProviderType\r
{\r
- get {return authenticationProviderType;}\r
- set {authenticationProviderType = value;}\r
+ get { return authenticationProviderType; }\r
+ set { authenticationProviderType = value; }\r
}\r
- \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgBody")]\r
public bool Body\r
{\r
- get {return body;}\r
- set {body = value;}\r
+ get { return body; }\r
+ set { body = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgConnectorType")]\r
public bool ConnectorType\r
{\r
- get {return connectorType;}\r
- set {connectorType = value;}\r
+ get { return connectorType; }\r
+ set { connectorType = value; }\r
}\r
- \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgCorrelationId")]\r
public bool CorrelationId\r
{\r
- get {return correlationId;}\r
- set {correlationId = value;}\r
+ get { return correlationId; }\r
+ set { correlationId = value; }\r
}\r
- \r
- public int DefaultBodySize \r
- {\r
- get {return defaultBodySize;} \r
- set {\r
- if (value < 0) throw new ArgumentException("DefaultBodySize");\r
+\r
+ [DefaultValue (1024)]\r
+ [MessagingDescription ("MsgDefaultBodySize")]\r
+ public int DefaultBodySize\r
+ {\r
+ get { return defaultBodySize; }\r
+ set\r
+ {\r
+ if (value < 0) \r
+ throw new ArgumentException ("DefaultBodySize");\r
defaultBodySize = value;\r
}\r
}\r
- \r
- public int DefaultExtensionSize \r
- {\r
- get {return defaultExtensionSize;}\r
- set {\r
- if (value < 0) throw new ArgumentException("DefaultExtensionSize");\r
+\r
+ [DefaultValue (255)]\r
+ [MessagingDescription ("MsgDefaultExtensionSize")]\r
+ public int DefaultExtensionSize\r
+ {\r
+ get { return defaultExtensionSize; }\r
+ set\r
+ {\r
+ if (value < 0) \r
+ throw new ArgumentException ("DefaultExtensionSize");\r
defaultExtensionSize = value;\r
}\r
}\r
- \r
- public int DefaultLabelSize \r
- {\r
- get {return defaultLabelSize;}\r
- set {\r
- if (value < 0) throw new ArgumentException("DefaultLabelSize");\r
+\r
+ [DefaultValue (255)]\r
+ [MessagingDescription ("MsgDefaultLabelSize")]\r
+ public int DefaultLabelSize\r
+ {\r
+ get { return defaultLabelSize; }\r
+ set\r
+ {\r
+ if (value < 0) throw new ArgumentException ("DefaultLabelSize");\r
defaultLabelSize = value;\r
}\r
}\r
- \r
- public bool DestinationQueue \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgDestinationQueue")]\r
+ public bool DestinationQueue\r
{\r
- get {return destinationQueue;}\r
- set {destinationQueue = value;}\r
+ get { return destinationQueue; }\r
+ set { destinationQueue = value; }\r
}\r
- \r
- public bool DestinationSymmetricKey \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgDestinationSymmetricKey")]\r
+ public bool DestinationSymmetricKey\r
{\r
- get {return destinationSymmetricKey;}\r
- set {destinationSymmetricKey = value;}\r
+ get { return destinationSymmetricKey; }\r
+ set { destinationSymmetricKey = value; }\r
}\r
- \r
- public bool DigitalSignature \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgDigitalSignature")]\r
+ public bool DigitalSignature\r
{\r
- get {return digitalSignature;}\r
- set {digitalSignature = value;}\r
+ get { return digitalSignature; }\r
+ set { digitalSignature = value; }\r
}\r
- \r
- public bool EncryptionAlgorithm \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgEncryptionAlgorithm")]\r
+ public bool EncryptionAlgorithm\r
{\r
- get {return encryptionAlgorithm;}\r
- set {encryptionAlgorithm = value;}\r
+ get { return encryptionAlgorithm; }\r
+ set { encryptionAlgorithm = value; }\r
}\r
- \r
- public bool Extension \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgExtension")]\r
+ public bool Extension\r
{\r
- get {return extension;}\r
- set {extension = value; }\r
+ get { return extension; }\r
+ set { extension = value; }\r
}\r
- \r
- public bool HashAlgorithm \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgHashAlgorithm")]\r
+ public bool HashAlgorithm\r
{\r
- get {return hashAlgorithm;}\r
- set {hashAlgorithm = value;}\r
+ get { return hashAlgorithm; }\r
+ set { hashAlgorithm = value; }\r
}\r
- \r
- public bool Id \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgId")]\r
+ public bool Id\r
{\r
- get {return id;}\r
- set {id = value;}\r
+ get { return id; }\r
+ set { id = value; }\r
}\r
- \r
- public bool IsFirstInTransaction \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgIsFirstInTransaction")]\r
+ public bool IsFirstInTransaction\r
{\r
- get {return isFirstInTransaction;}\r
- set {isFirstInTransaction = value;}\r
+ get { return isFirstInTransaction; }\r
+ set { isFirstInTransaction = value; }\r
}\r
- \r
- public bool IsLastInTransaction \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgIsLastInTransaction")]\r
+ public bool IsLastInTransaction\r
{\r
- get {return isLastInTransaction;}\r
- set {isLastInTransaction = value; }\r
+ get { return isLastInTransaction; }\r
+ set { isLastInTransaction = value; }\r
}\r
- \r
- public bool Label \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgLabel")]\r
+ public bool Label\r
{\r
- get {return label; }\r
- set {label = value;}\r
+ get { return label; }\r
+ set { label = value; }\r
}\r
- \r
- public bool MessageType \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgMessageType")]\r
+ public bool MessageType\r
{\r
- get {return messageType;}\r
- set {messageType = value;}\r
+ get { return messageType; }\r
+ set { messageType = value; }\r
}\r
- \r
- public bool Priority \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgPriority")]\r
+ public bool Priority\r
{\r
- get {return priority;}\r
- set {priority = value;}\r
+ get { return priority; }\r
+ set { priority = value; }\r
}\r
- \r
- public bool Recoverable \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgRecoverable")]\r
+ public bool Recoverable\r
{\r
- get {return recoverable;}\r
- set {recoverable = value;}\r
+ get { return recoverable; }\r
+ set { recoverable = value; }\r
}\r
- \r
- public bool ResponseQueue \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgResponseQueue")]\r
+ public bool ResponseQueue\r
{\r
- get {return responseQueue;}\r
- set {responseQueue = value;}\r
+ get { return responseQueue; }\r
+ set { responseQueue = value; }\r
}\r
- \r
- public bool SenderCertificate \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgSenderCertificate")]\r
+ public bool SenderCertificate\r
{\r
- get {return senderCertificate;}\r
- set {senderCertificate = value; }\r
+ get { return senderCertificate; }\r
+ set { senderCertificate = value; }\r
}\r
- \r
- public bool SenderId \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgSenderId")]\r
+ public bool SenderId\r
{\r
- get {return senderId;}\r
- set {senderId = value;}\r
+ get { return senderId; }\r
+ set { senderId = value; }\r
}\r
- \r
- public bool SenderVersion \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgSenderVersion")]\r
+ public bool SenderVersion\r
{\r
- get {return senderVersion;}\r
- set {senderVersion = value;}\r
+ get { return senderVersion; }\r
+ set { senderVersion = value; }\r
}\r
- \r
- public bool SentTime \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgSentTime")]\r
+ public bool SentTime\r
{\r
- get {return sentTime;}\r
- set {sentTime = value;}\r
+ get { return sentTime; }\r
+ set { sentTime = value; }\r
}\r
- \r
- public bool SourceMachine \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgSourceMachine")]\r
+ public bool SourceMachine\r
{\r
- get {return sourceMachine;}\r
- set {sourceMachine = value;}\r
+ get { return sourceMachine; }\r
+ set { sourceMachine = value; }\r
}\r
- \r
- public bool TimeToBeReceived \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgTimeToBeReceived")]\r
+ public bool TimeToBeReceived\r
{\r
- get {return timeToBeReceived;}\r
- set {timeToBeReceived = value;}\r
+ get { return timeToBeReceived; }\r
+ set { timeToBeReceived = value; }\r
}\r
- \r
- public bool TimeToReachQueue \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgTimeToReachQueue")]\r
+ public bool TimeToReachQueue\r
{\r
- get {return timeToReachQueue;}\r
- set {timeToReachQueue = value;}\r
+ get { return timeToReachQueue; }\r
+ set { timeToReachQueue = value; }\r
}\r
- \r
- public bool TransactionId \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgTransactionId")]\r
+ public bool TransactionId\r
{\r
- get {return transactionId;} \r
- set {transactionId = value;}\r
+ get { return transactionId; }\r
+ set { transactionId = value; }\r
}\r
- \r
- public bool TransactionStatusQueue \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgTransactionStatusQueue")]\r
+ public bool TransactionStatusQueue\r
{\r
- get {return transactionStatusQueue;}\r
- set {transactionStatusQueue = value;}\r
+ get { return transactionStatusQueue; }\r
+ set { transactionStatusQueue = value; }\r
}\r
- \r
- public bool UseAuthentication \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseAuthentication")]\r
+ public bool UseAuthentication\r
{\r
- get {return useAuthentication;}\r
- set {useAuthentication = value;}\r
+ get { return useAuthentication; }\r
+ set { useAuthentication = value; }\r
}\r
- \r
- public bool UseDeadLetterQueue \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgUseDeadLetterQueue")]\r
+ public bool UseDeadLetterQueue\r
{\r
- get {return useDeadLetterQueue;}\r
- set {useDeadLetterQueue = value;}\r
+ get { return useDeadLetterQueue; }\r
+ set { useDeadLetterQueue = value; }\r
}\r
- \r
- public bool UseEncryption \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseEncryption")]\r
+ public bool UseEncryption\r
{\r
- get {return useEncryption;}\r
- set {useEncryption = value; }\r
+ get { return useEncryption; }\r
+ set { useEncryption = value; }\r
}\r
- \r
- public bool UseJournalQueue \r
+\r
+ [DefaultValue (true)]\r
+ [MessagingDescription ("MsgUseJournalQueue")]\r
+ public bool UseJournalQueue\r
{\r
- get {return useJournalQueue;}\r
- set {useJournalQueue = value;}\r
+ get { return useJournalQueue; }\r
+ set { useJournalQueue = value; }\r
}\r
- \r
- public bool UseTracing \r
+\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MsgUseTracing")]\r
+ public bool UseTracing\r
{\r
- get {return useTracing;}\r
- set {useTracing = value;}\r
+ get { return useTracing; }\r
+ set { useTracing = value; }\r
}\r
- \r
- public void ClearAll() {\r
+\r
+ public void ClearAll ()\r
+ {\r
acknowledgeType = false;\r
acknowledgment = false;\r
administrationQueue = false;\r
useJournalQueue = false;\r
useTracing = false;\r
}\r
- \r
- public void SetAll() \r
+\r
+ public void SetAll ()\r
{\r
acknowledgeType = true;\r
acknowledgment = true;\r
useJournalQueue = true;\r
useTracing = true;\r
}\r
- \r
+\r
[MonoTODO]\r
- public void SetDefaults() \r
+ public void SetDefaults ()\r
{\r
acknowledgeType = false;\r
acknowledgment = false;\r
useJournalQueue = false;\r
useTracing = false;\r
}\r
- \r
- [MonoTODO]\r
- ~MessagePropertyFilter()\r
- {\r
- }\r
}\r
}\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
using System.Collections;\r
using System.ComponentModel;\r
+using System.Drawing;\r
+using System.Messaging.Design;\r
\r
-namespace System.Messaging \r
+namespace System.Messaging\r
{\r
- public class MessageQueue: Component, IEnumerable \r
+ [TypeConverter (typeof(MessageQueueConverter))]\r
+ [Editor ("System.Messaging.Design.QueuePathEditor", "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]\r
+ [Designer ("Microsoft.VisualStudio.Install.MessageQueueInstallableComponentDesigner, " + Consts.AssemblyMicrosoft_VisualStudio)]\r
+ [InstallerType (typeof(MessageQueueInstaller))]\r
+ [DefaultEvent ("ReceiveCompleted")]\r
+ public class MessageQueue : Component, IEnumerable\r
{\r
- \r
#region Fields\r
- \r
+\r
public static readonly long InfiniteQueueSize;\r
public static readonly TimeSpan InfiniteTimeout;\r
- \r
+\r
private bool isPrivate = false;\r
- private string queueName; \r
+ private string queueName;\r
private string machineName;\r
- \r
- \r
+\r
+\r
#endregion //Fields\r
\r
- \r
+\r
#region Constructor\r
- \r
+\r
[MonoTODO]\r
- public MessageQueue() \r
+ public MessageQueue ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
- \r
+\r
[MonoTODO]\r
- public MessageQueue(string path)\r
- {\r
+ public MessageQueue (string path) {\r
this.Path = path;\r
- this.isPrivate= false;\r
+ this.isPrivate = false;\r
}\r
- \r
+\r
[MonoTODO]\r
- private MessageQueue(string queueName, string machineName, bool isPrivate)\r
+ private MessageQueue (string queueName, string machineName, bool isPrivate) \r
{\r
this.queueName = queueName;\r
this.machineName = machineName;\r
- this.isPrivate= isPrivate;\r
+ this.isPrivate = isPrivate;\r
}\r
- \r
+\r
[MonoTODO]\r
- public MessageQueue(string path, bool sharedModeDenyReceive)\r
+ public MessageQueue (string path, bool sharedModeDenyReceive) \r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
- \r
+\r
#endregion //Constructor\r
- \r
+\r
#region Properties\r
- \r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_Authenticate")]\r
public bool Authenticate {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_BasePriority")]\r
public short BasePriority {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [Browsable (false)]\r
+ [MessagingDescription ("MQ_CanRead")]\r
public bool CanRead {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [Browsable (false)]\r
+ [MessagingDescription ("MQ_CanWrite")]\r
public bool CanWrite {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_Category")]\r
public Guid Category {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_CreateTime")]\r
public DateTime CreateTime {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]\r
+ [Browsable (false)]\r
+ [MessagingDescription ("MQ_DefaultPropertiesToSend")]\r
public DefaultPropertiesToSend DefaultPropertiesToSend {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DefaultValue (false)]\r
+ [MessagingDescription ("MQ_DenySharedReceive")]\r
public bool DenySharedReceive {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
public static bool EnableConnectionCache {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_EncryptionRequired")]\r
public EncryptionRequired EncryptionRequired {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_FormatName")]\r
public string FormatName {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DefaultValue (null)]\r
+ [TypeConverter (typeof(MessageFormatterConverter))]\r
+ [MessagingDescription ("MQ_Formatter")]\r
public IMessageFormatter Formatter {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_GuidId")]\r
public Guid Id {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_Label")]\r
public string Label {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_LastModifyTime")]\r
public DateTime LastModifyTime {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_MachineName")]\r
public string MachineName {\r
- get { return machineName; }\r
- set { machineName = value; }\r
+ get {\r
+ return machineName;\r
+ }\r
+ set {\r
+ machineName = value;\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [TypeConverter (typeof(SizeConverter))]\r
+ [MessagingDescription ("MQ_MaximumJournalSize")]\r
public long MaximumJournalSize {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [TypeConverter (typeof(SizeConverter))]\r
+ [MessagingDescription ("MQ_MaximumQueueSize")]\r
public long MaximumQueueSize {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Content)]\r
+ [MessagingDescription ("MQ_MessageReadPropertyFilter")]\r
public MessagePropertyFilter MessageReadPropertyFilter {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [RecommendedAsConfigurable (true)]\r
+ [Editor ("System.Messaging.Design.QueuePathEditor", "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]\r
+ [Browsable (false)]\r
+ [DefaultValue ("")]\r
+ [TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]\r
+ [MessagingDescription ("MQ_Path")]\r
public string Path {\r
- get { return machineName + ":" + queueName; }\r
- [MonoTODO("split input")]\r
- set {throw new NotImplementedException();}\r
+ get {\r
+ return machineName + ":" + queueName;\r
+ }\r
+ [MonoTODO ("split input")]\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_QueueName")]\r
public string QueueName {\r
- get { return queueName; }\r
- set { queueName = value; }\r
+ get {\r
+ return queueName;\r
+ }\r
+ set {\r
+ queueName = value;\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_ReadHandle")]\r
public IntPtr ReadHandle {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [Browsable (false)]\r
+ [DefaultValue (null)]\r
+ [MessagingDescription ("MQ_SynchronizingObject")]\r
public ISynchronizeInvoke SynchronizingObject {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_Transactional")]\r
public bool Transactional {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_WriteHandle")]\r
public bool UseJournalQueue {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
[MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ set {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
- \r
- #endregion //Properties\r
- \r
- #region Methods\r
- \r
+\r
+ [Browsable (false)]\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("MQ_WriteHandle")]\r
public IntPtr WriteHandle {\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
+\r
+ #endregion //Properties\r
+\r
+ #region Methods\r
+\r
[MonoTODO]\r
- public IAsyncResult BeginPeek()\r
+ public IAsyncResult BeginPeek ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginPeek(TimeSpan timeout)\r
+ public IAsyncResult BeginPeek (TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginPeek(TimeSpan timeout, object stateObject)\r
+ public IAsyncResult BeginPeek (TimeSpan timeout, object stateObject)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginPeek(TimeSpan timeout,\r
+ public IAsyncResult BeginPeek (TimeSpan timeout,\r
object stateObject,\r
AsyncCallback callback)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginReceive()\r
+ public IAsyncResult BeginReceive ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginReceive(TimeSpan timeout)\r
+ public IAsyncResult BeginReceive (TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginReceive(TimeSpan timeout, object stateObject)\r
+ public IAsyncResult BeginReceive (TimeSpan timeout, object stateObject)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IAsyncResult BeginReceive(TimeSpan timeout, object stateObject, AsyncCallback callback)\r
+ public IAsyncResult BeginReceive (TimeSpan timeout, object stateObject, AsyncCallback callback)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static void ClearConnectionCache()\r
+ public static void ClearConnectionCache ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public void Close()\r
+ public void Close ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static MessageQueue Create(string path)\r
+ public static MessageQueue Create (string path)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static MessageQueue Create(string path, bool transactional)\r
+ public static MessageQueue Create (string path, bool transactional)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static void Delete(string path)\r
+ public static void Delete (string path)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message EndPeek(IAsyncResult asyncResult)\r
+ public Message EndPeek (IAsyncResult asyncResult)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message EndReceive(IAsyncResult asyncResult)\r
+ public Message EndReceive (IAsyncResult asyncResult)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static bool Exists(string path)\r
+ public static bool Exists (string path)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message[] GetAllMessages()\r
+ public Message[] GetAllMessages ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public IEnumerator GetEnumerator()\r
+ public IEnumerator GetEnumerator ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static Guid GetMachiIdneId(string machineName)\r
+ public static Guid GetMachineId (string machineName)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public MessageEnumerator GetMessageEnumerator()\r
+ public MessageEnumerator GetMessageEnumerator ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
- \r
+\r
private static ArrayList currentQueueList;\r
- \r
- static MessageQueue()\r
+\r
+ static MessageQueue ()\r
{\r
- currentQueueList = new ArrayList();\r
+ currentQueueList = new ArrayList ();\r
// for testing purposes\r
- currentQueueList.Add(new MessageQueue(@"localhost:\public\TestQueue"));\r
- currentQueueList.Add(new MessageQueue(@"\private\AnotherTestQueue", "localhost", true));\r
+ currentQueueList.Add (new MessageQueue (@"localhost:\public\TestQueue"));\r
+ currentQueueList.Add (new MessageQueue (@"\private\AnotherTestQueue", "localhost", true));\r
}\r
- \r
- public static MessageQueueEnumerator GetMessageQueueEnumerator()\r
+\r
+ public static MessageQueueEnumerator GetMessageQueueEnumerator ()\r
{\r
- return new MessageQueueEnumerator(currentQueueList);\r
+ return new MessageQueueEnumerator (currentQueueList);\r
}\r
\r
- private static ArrayList filteredQueueList(MessageQueueCriteria criteria)\r
+ private static ArrayList filteredQueueList (MessageQueueCriteria criteria)\r
{\r
- ArrayList list = new ArrayList();\r
- foreach(MessageQueue queue in currentQueueList)\r
- if (criteria.Match(queue.Id, queue.CreateTime, queue.Label, queue.MachineName, queue.LastModifyTime))\r
- list.Add(queue);\r
+ ArrayList list = new ArrayList ();\r
+ foreach (MessageQueue queue in currentQueueList)\r
+ if (criteria.Match (queue.Id, queue.CreateTime, queue.Label, queue.MachineName, queue.LastModifyTime))\r
+ list.Add (queue);\r
return list;\r
}\r
- \r
- public static MessageQueueEnumerator GetMessageQueueEnumerator(MessageQueueCriteria criteria)\r
+\r
+ public static MessageQueueEnumerator GetMessageQueueEnumerator (MessageQueueCriteria criteria)\r
{\r
- return new MessageQueueEnumerator(filteredQueueList(criteria));\r
+ return new MessageQueueEnumerator (filteredQueueList (criteria));\r
}\r
- \r
- public static MessageQueue[] GetPrivateQueuesByMachine(string machineName)\r
+\r
+ public static MessageQueue[] GetPrivateQueuesByMachine (string machineName)\r
{\r
if (machineName == null || machineName.Length == 0)\r
- throw new ArgumentException();\r
- ArrayList list = new ArrayList();\r
- foreach(MessageQueue queue in currentQueueList)\r
+ throw new ArgumentException ();\r
+ ArrayList list = new ArrayList ();\r
+ foreach (MessageQueue queue in currentQueueList)\r
if (queue.machineName == machineName && queue.isPrivate)\r
- list.Add(queue);\r
- return (MessageQueue[])list.ToArray(typeof(MessageQueue));\r
+ list.Add (queue);\r
+ return (MessageQueue[]) list.ToArray (typeof(MessageQueue));\r
}\r
- \r
+\r
[MonoTODO]\r
- public static MessageQueue[] GetPublicQueues()\r
+ public static MessageQueue[] GetPublicQueues ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static MessageQueue[] GetPublicQueues(MessageQueueCriteria criteria)\r
+ public static MessageQueue[] GetPublicQueues (MessageQueueCriteria criteria)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static MessageQueue[] GetPublicQueuesByCategory(Guid category)\r
+ public static MessageQueue[] GetPublicQueuesByCategory (Guid category)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static MessageQueue[] GetPublicQueuesByLabel(string label)\r
+ public static MessageQueue[] GetPublicQueuesByLabel (string label)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public static MessageQueue[] GetPublicQueuesByMachine(string machineName)\r
+ public static MessageQueue[] GetPublicQueuesByMachine (string machineName)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Peek()\r
+ public Message Peek ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Peek(TimeSpan timeout)\r
+ public Message Peek (TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message PeekByCorrelationId(string correlationId)\r
+ public Message PeekByCorrelationId (string correlationId)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message PeekByCorrelationId(string correlationId, TimeSpan timeout)\r
+ public Message PeekByCorrelationId (string correlationId, TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message PeekById(string id)\r
+ public Message PeekById (string id)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message PeekById(string id, TimeSpan timeout)\r
+ public Message PeekById (string id, TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public void Purge()\r
+ public void Purge ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Receive()\r
+ public Message Receive ()\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Receive(MessageQueueTransaction transaction)\r
+ public Message Receive (MessageQueueTransaction transaction)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Receive(MessageQueueTransactionType transactionType)\r
+ public Message Receive (MessageQueueTransactionType transactionType)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Receive(TimeSpan timeout)\r
+ public Message Receive (TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Receive(TimeSpan timeout, MessageQueueTransaction transaction)\r
+ public Message Receive (TimeSpan timeout, MessageQueueTransaction transaction)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message Receive(TimeSpan timeout, MessageQueueTransactionType transactionType)\r
+ public Message Receive (TimeSpan timeout, MessageQueueTransactionType transactionType)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveByCorrelationId(string correlationId)\r
+ public Message ReceiveByCorrelationId (string correlationId)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveByCorrelationId(string correlationId, MessageQueueTransaction transaction)\r
+ public Message ReceiveByCorrelationId (string correlationId, MessageQueueTransaction transaction)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveByCorrelationId(string correlationId, MessageQueueTransactionType transactionType)\r
+ public Message ReceiveByCorrelationId (string correlationId, MessageQueueTransactionType transactionType)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveByCorrelationId(string correlationId, TimeSpan timeout)\r
+ public Message ReceiveByCorrelationId (string correlationId, TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveByCorrelationId(string correlationId, TimeSpan timeout, MessageQueueTransaction transaction)\r
+ public Message ReceiveByCorrelationId (string correlationId, TimeSpan timeout, MessageQueueTransaction transaction)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveByCorrelationId(string correlationId, TimeSpan timeout, MessageQueueTransactionType transactionType)\r
+ public Message ReceiveByCorrelationId (string correlationId, TimeSpan timeout, MessageQueueTransactionType transactionType)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveById(string id)\r
+ public Message ReceiveById (string id)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveById(string id,MessageQueueTransaction transaction)\r
+ public Message ReceiveById (string id, MessageQueueTransaction transaction)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveById(string id,MessageQueueTransactionType transactionType)\r
+ public Message ReceiveById (string id, MessageQueueTransactionType transactionType)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public Message ReceiveById(string id,TimeSpan timeout)\r
+ public Message ReceiveById (string id, TimeSpan timeout)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public void Refresh()\r
+ public Message ReceiveById (string id, TimeSpan timeout, MessageQueueTransaction transaction)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
[MonoTODO]\r
- public void ResetPermissions()\r
+ public Message ReceiveById (string id, TimeSpan timeout, MessageQueueTransactionType transactionType)\r
{\r
- throw new NotImplementedException();\r
+ throw new NotImplementedException ();\r
}\r
- \r
- #endregion //Methods\r
- \r
- //TODO: Use these events.\r
- \r
- public event PeekCompletedEventHandler PeekCompleted;\r
- \r
- public event ReceiveCompletedEventHandler ReceiveCompleted;\r
- \r
[MonoTODO]\r
- protected override void Dispose(bool disposing)\r
+ public void Refresh ()\r
{\r
+ throw new NotImplementedException ();\r
}\r
- ~MessageQueue()\r
+ [MonoTODO]\r
+ public void ResetPermissions ()\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void Send (object obj)\r
{\r
+ throw new NotImplementedException ();\r
}\r
+ [MonoTODO]\r
+ public void Send (object obj, MessageQueueTransaction transaction)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void Send (object obj, MessageQueueTransactionType transactionType)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void Send (object obj, string label)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void Send (object obj, string label, MessageQueueTransaction transaction)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void Send (object obj, string label, MessageQueueTransactionType transactionType)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void SetPermissions (AccessControlList dacl)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void SetPermissions (MessageQueueAccessControlEntry ace)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void SetPermissions (string user, MessageQueueAccessRights rights)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ public void SetPermissions (string user, MessageQueueAccessRights rights, AccessControlEntryType entryType)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+ [MonoTODO]\r
+ protected override void Dispose (bool disposing)\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
+\r
+ #endregion //Methods\r
+\r
+ //TODO: Use these events.\r
+\r
+ [MessagingDescription ("MQ_PeekCompleted")]\r
+ public event PeekCompletedEventHandler PeekCompleted;\r
+\r
+ [MessagingDescription ("MQ_ReceiveCompleted")]\r
+ public event ReceiveCompletedEventHandler ReceiveCompleted;\r
}\r
}\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
- \r
- [MonoTODO]\r
- ~MessageQueueAccessControlEntry()\r
- {\r
- }\r
}\r
}\r
using System;\r
using System.Collections;\r
\r
-namespace System.Messaging \r
+namespace System.Messaging\r
{\r
- public class MessageQueueEnumerator: MarshalByRefObject, IEnumerator, IDisposable \r
+ public class MessageQueueEnumerator : MarshalByRefObject, IEnumerator, IDisposable\r
{\r
- // To avoid multiple disposals\r
- private bool disposed = false;\r
+ private bool disposed;\r
private ArrayList queueList;\r
private int currentIndex;\r
- \r
- internal MessageQueueEnumerator(ArrayList queueList)\r
+\r
+ internal MessageQueueEnumerator (ArrayList queueList)\r
{\r
this.queueList = queueList;\r
this.currentIndex = -1;\r
}\r
\r
- public MessageQueue Current \r
+ public MessageQueue Current\r
{\r
- get \r
+ get\r
{\r
- if (currentIndex < 0 ||\r
- currentIndex >= queueList.Count)\r
+ if (currentIndex < 0 || currentIndex >= queueList.Count)\r
return null;\r
- return (MessageQueue)queueList[currentIndex];\r
+ return (MessageQueue) queueList[currentIndex];\r
}\r
}\r
- \r
- object IEnumerator.Current \r
+\r
+ object IEnumerator.Current\r
{\r
- get \r
+ get\r
{\r
- if (currentIndex < 0 ||\r
- currentIndex >= queueList.Count)\r
+ if (currentIndex < 0 || currentIndex >= queueList.Count)\r
return null;\r
return queueList[currentIndex];\r
}\r
}\r
- \r
- public IntPtr LocatorHandle \r
+\r
+ public IntPtr LocatorHandle\r
{\r
[MonoTODO]\r
- get {throw new NotImplementedException();}\r
+ get\r
+ {\r
+ throw new NotImplementedException ();\r
+ }\r
}\r
- \r
- public void Close()\r
+\r
+ [MonoTODO]\r
+ public void Close ()\r
{\r
- Dispose();\r
}\r
- \r
- public void Dispose()\r
+\r
+ public void Dispose ()\r
{\r
- // Do this only at the first time\r
- if (!this.disposed)\r
- Dispose(true);\r
- disposed = true; \r
- // Take this object off the finalization queue \r
- //GC.SuppressFinalize(this);\r
+ Dispose (true);\r
+ GC.SuppressFinalize (this);\r
}\r
- \r
- protected virtual void Dispose(bool disposing)\r
+\r
+ protected virtual void Dispose (bool disposing)\r
{\r
- // do nothing\r
+ Close ();\r
+ disposed = true;\r
}\r
- \r
- public bool MoveNext()\r
+\r
+ public bool MoveNext ()\r
{\r
- return (++currentIndex) < queueList.Count; \r
+ return (++currentIndex) < queueList.Count;\r
}\r
- \r
- public void Reset()\r
+\r
+ public void Reset ()\r
{\r
currentIndex = -1;\r
}\r
- \r
- ~MessageQueueEnumerator()\r
+\r
+ ~MessageQueueEnumerator ()\r
{\r
- if (!this.disposed)\r
- Dispose(false); \r
+ if (!disposed)\r
+ Dispose (false);\r
}\r
}\r
}\r
{ \r
public class MessageQueueException: ExternalException \r
{\r
- private MessageQueueErrorCode messageQueueErrorCode;\r
+ private MessageQueueErrorCode _messageQueueErrorCode;\r
\r
internal MessageQueueException(MessageQueueErrorCode messageQueueErrorCode)\r
{\r
- this.messageQueueErrorCode = messageQueueErrorCode;\r
+ _messageQueueErrorCode = messageQueueErrorCode;\r
}\r
- \r
+\r
+ protected MessageQueueException (SerializationInfo info, StreamingContext context) : base(info, context)\r
+ {\r
+ _messageQueueErrorCode = (MessageQueueErrorCode) info.GetInt32 ("NativeErrorCode");\r
+ }\r
+\r
[MonoTODO]\r
private string TranslateCodeToDescription()\r
{\r
return "UnknownError";\r
}\r
\r
+ [MonoTODO]\r
public override string Message \r
{\r
get { return TranslateCodeToDescription(); }\r
\r
public MessageQueueErrorCode MessageQueueErrorCode \r
{\r
- get { return messageQueueErrorCode; }\r
+ get { return _messageQueueErrorCode; }\r
}\r
\r
- [MonoTODO]\r
public override void GetObjectData(SerializationInfo info, StreamingContext context)\r
{\r
if (info == null)\r
throw new ArgumentNullException();\r
+\r
+ info.AddValue ("NativeErrorCode", (int) _messageQueueErrorCode);\r
base.GetObjectData(info, context);\r
- // serialize just the messageQueueErrorCode private field;\r
- }\r
- \r
- [MonoTODO]\r
- public override string ToString()\r
- {\r
- return base.ToString();\r
- }\r
- \r
- [MonoTODO]\r
- ~MessageQueueException()\r
- {\r
}\r
}\r
}\r
-//\r
-// System.Messaging\r
-//\r
-// Authors:\r
-// Peter Van Isacker (sclytrack@planetinternet.be)\r
-//\r
-// (C) 2003 Peter Van Isacker\r
-//\r
-using System;\r
-using System.Collections;\r
-using System.ComponentModel;\r
-using System.Configuration.Install;\r
-\r
-namespace System.Messaging \r
+//
+// System.Messaging
+//
+// Authors:
+// Peter Van Isacker (sclytrack@planetinternet.be)
+//
+// (C) 2003 Peter Van Isacker
+//
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.Configuration.Install;
+using System.Drawing;
+
+namespace System.Messaging
{
- [CLSCompliant (false)]\r
- public class MessageQueueInstaller: ComponentInstaller \r
- {\r
- [MonoTODO]\r
- public MessageQueueInstaller()\r
- {\r
- }\r
- \r
- [MonoTODO]\r
- public MessageQueueInstaller(MessageQueue componentToCopy)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- public bool Authenticate \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public short BasePriority \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public Guid Category \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public EncryptionRequired EncryptionRequired \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public string Label \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public long MaximumJournalSize \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public long MaximumQueueSize \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public string Path \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public AccessControlList Permissions \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ public class MessageQueueInstaller: ComponentInstaller
+ {
+ [MonoTODO]
+ public MessageQueueInstaller()
+ {
+ }
+
+ [MonoTODO]
+ public MessageQueueInstaller(MessageQueue componentToCopy)
+ {
+ throw new NotImplementedException();
+ }
+
+ [DefaultValue (false)]
+ public bool Authenticate {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [DefaultValue (0)]
+ public short BasePriority {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [TypeConverter (typeof(GuidConverter))]
+ public Guid Category {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
}\r
- \r
- public bool Transactional \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public UninstallAction UninstallAction \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- public bool UseJournalQueue \r
- {\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
- }\r
- \r
- [MonoTODO]\r
- public override void Commit(IDictionary savedState)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- [MonoTODO]\r
- public override void CopyFromComponent(IComponent component)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- [MonoTODO]\r
- public override void Install(IDictionary stateSaver)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- [MonoTODO]\r
- public override bool IsEquivalentInstaller(ComponentInstaller otherInstaller)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- [MonoTODO]\r
- public override void Rollback(IDictionary savedState)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- [MonoTODO]\r
- public override void Uninstall(IDictionary savedState)\r
- {\r
- throw new NotImplementedException();\r
- }\r
- \r
- [MonoTODO]\r
- ~MessageQueueInstaller()\r
- {\r
+\r
+ [DefaultValue (EncryptionRequired.None)]\r
+ public EncryptionRequired EncryptionRequired {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [DefaultValue ("")]
+ public string Label {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [TypeConverter (typeof(SizeConverter))]
+ public long MaximumJournalSize {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [TypeConverter (typeof(SizeConverter))]
+ public long MaximumQueueSize {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [Editor ("System.Messaging.Design.QueuePathEditor", "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
+ [DefaultValue ("")]
+ [TypeConverter ("System.Diagnostics.Design.StringValueConverter, " + Consts.AssemblySystem_Design)]
+ public string Path {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [Browsable (false)]
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ public AccessControlList Permissions {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [DefaultValue (false)]
+ public bool Transactional {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
}\r
- }\r
-}\r
+\r
+ [DefaultValue (UninstallAction.Remove)]\r
+ public UninstallAction UninstallAction {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [DefaultValue (false)]
+ public bool UseJournalQueue {
+ [MonoTODO]
+ get {throw new NotImplementedException();}
+ [MonoTODO]
+ set {throw new NotImplementedException();}
+ }
+
+ [MonoTODO]
+ public override void Commit(IDictionary savedState)
+ {
+ throw new NotImplementedException();
+ }
+
+ [MonoTODO]
+ public override void CopyFromComponent(IComponent component)
+ {
+ throw new NotImplementedException();
+ }
+
+ [MonoTODO]
+ public override void Install(IDictionary stateSaver)
+ {
+ throw new NotImplementedException();
+ }
+
+ [MonoTODO]
+ public override bool IsEquivalentInstaller(ComponentInstaller otherInstaller)
+ {
+ throw new NotImplementedException();
+ }
+
+ [MonoTODO]
+ public override void Rollback(IDictionary savedState)
+ {
+ throw new NotImplementedException();
+ }
+
+ [MonoTODO]
+ public override void Uninstall(IDictionary savedState)
+ {
+ throw new NotImplementedException();
+ }
+ }
+}
\r
namespace System.Messaging \r
{\r
- \r
[Serializable]\r
- public class MessageQueuePermission: CodeAccessPermission, IUnrestrictedPermission \r
+ public sealed class MessageQueuePermission: CodeAccessPermission, IUnrestrictedPermission \r
{\r
[MonoTODO]\r
public MessageQueuePermission()\r
}\r
\r
[MonoTODO]\r
- bool IUnrestrictedPermission.IsUnrestricted() \r
+ public bool IsUnrestricted() \r
{\r
throw new NotImplementedException();\r
}\r
{\r
throw new NotImplementedException();\r
}\r
+\r
+ [MonoTODO]\r
+ internal void Clear ()\r
+ {\r
+ }\r
}\r
}\r
[Serializable]\r
public class MessageQueuePermissionAttribute: CodeAccessSecurityAttribute \r
{\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class|\r
- // AttributeTargets.Struct | AttributeTargets.Constructor |AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
[MonoTODO]\r
public MessageQueuePermissionAttribute(SecurityAction action):base(action)\r
{\r
}\r
\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class| AttributeTargets.Struct | AttributeTargets.Constructor |\r
- // AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
public string Category \r
{\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class\r
- // | AttributeTargets.Struct | AttributeTargets.Constructor |\r
- //AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
public string Label \r
{\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class\r
- // | AttributeTargets.Struct | AttributeTargets.Constructor |\r
- // AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
public string MachineName \r
{\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class\r
- // | AttributeTargets.Struct | AttributeTargets.Constructor |\r
- // AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
public string Path \r
{\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class\r
- // | AttributeTargets.Struct | AttributeTargets.Constructor |\r
- // AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
public MessageQueuePermissionAccess PermissionAccess \r
{\r
[MonoTODO]\r
set {throw new NotImplementedException();}\r
}\r
\r
- //[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class |\r
- // AttributeTargets.Struct | AttributeTargets.Constructor |\r
- // AttributeTargets.Method | AttributeTargets.Event)]\r
- //[Serializable]\r
[MonoTODO]\r
public override IPermission CreatePermission()\r
{\r
throw new NotImplementedException();\r
}\r
- \r
- [MonoTODO]\r
- ~MessageQueuePermissionAttribute()\r
- {\r
- }\r
}\r
}\r
[MonoTODO]\r
get {throw new NotImplementedException();}\r
}\r
- \r
- [MonoTODO]\r
- ~MessageQueuePermissionEntry()\r
- {\r
- }\r
}\r
}\r
[Serializable]\r
public class MessageQueuePermissionEntryCollection: CollectionBase \r
{\r
- //[Serializable]\r
+ private MessageQueuePermission owner;\r
+\r
+ internal MessageQueuePermissionEntryCollection (MessageQueuePermission owner)\r
+ {\r
+ this.owner = owner;\r
+ }\r
+\r
public MessageQueuePermissionEntry this[int index] \r
{\r
- [MonoTODO]\r
- get {throw new NotImplementedException();}\r
- [MonoTODO]\r
- set {throw new NotImplementedException();}\r
+ get\r
+ {\r
+ return ((MessageQueuePermissionEntry) base.List[index]);\r
+ }\r
+ set\r
+ {\r
+ base.List[index] = value;\r
+ }\r
}\r
\r
- [MonoTODO]\r
public int Add(MessageQueuePermissionEntry value)\r
{\r
- throw new NotImplementedException();\r
+ return base.List.Add (value);\r
}\r
\r
- [MonoTODO]\r
public void AddRange(MessageQueuePermissionEntry[] value)\r
{\r
- throw new NotImplementedException();\r
+ if (value == null)\r
+ {\r
+ throw new ArgumentNullException ("value");\r
+\r
+ }\r
+ for (int counter = 0; counter < value.Length; counter++)\r
+ {\r
+ this.Add (value[counter]);\r
+ }\r
}\r
\r
- [MonoTODO]\r
public void AddRange(MessageQueuePermissionEntryCollection value)\r
{\r
- throw new NotImplementedException();\r
+ if (value == null)\r
+ {\r
+ throw new ArgumentNullException ("value");\r
+\r
+ }\r
+ int entryCount = value.Count;\r
+ for (int counter = 0; counter < entryCount; counter++)\r
+ {\r
+ this.Add (value[counter]);\r
+ }\r
}\r
\r
- [MonoTODO]\r
public bool Contains(MessageQueuePermissionEntry value)\r
{\r
- throw new NotImplementedException();\r
+ return base.List.Contains (value);\r
}\r
\r
- [MonoTODO]\r
public void CopyTo(MessageQueuePermissionEntry[] array,int index)\r
{\r
- throw new NotImplementedException();\r
+ base.List.CopyTo (array, index);\r
}\r
\r
[MonoTODO]\r
public int IndexOf(MessageQueuePermissionEntry value)\r
{\r
- throw new NotImplementedException();\r
+ return base.List.IndexOf (value);\r
}\r
\r
- [MonoTODO]\r
public void Insert(int index, MessageQueuePermissionEntry value)\r
{\r
- throw new NotImplementedException();\r
+ base.List.Insert (index, value);\r
}\r
\r
- [MonoTODO]\r
public void Remove(MessageQueuePermissionEntry value)\r
{\r
- throw new NotImplementedException();\r
+ base.List.Remove (value);\r
}\r
\r
- [MonoTODO]\r
protected override void OnClear()\r
{\r
- throw new NotImplementedException();\r
+ owner.Clear ();\r
}\r
\r
- [MonoTODO]\r
protected override void OnInsert(int index,object value)\r
{\r
- throw new NotImplementedException();\r
+ owner.Clear ();\r
}\r
\r
- [MonoTODO]\r
protected override void OnRemove(int index,object value)\r
{\r
- throw new NotImplementedException();\r
+ owner.Clear ();\r
}\r
\r
- [MonoTODO]\r
protected override void OnSet(int index,object oldValue,object newValue)\r
{\r
- throw new NotImplementedException();\r
+ owner.Clear ();\r
}\r
}\r
}\r
[AttributeUsage(AttributeTargets.All)]\r
public class MessagingDescriptionAttribute: DescriptionAttribute \r
{\r
- public MessagingDescriptionAttribute(string description) : base(description) {}\r
+ [MonoTODO ("localization")]\r
+ public MessagingDescriptionAttribute(string description) : base(description) \r
+ {\r
+ }\r
+\r
+ [MonoTODO ("localization")]\r
+ public override string Description\r
+ {\r
+ get\r
+ {\r
+ return base.Description;\r
+ }\r
+ }\r
}\r
}\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
using System.Runtime.Remoting.Messaging;\r
\r
{\r
public class PeekCompletedEventArgs : EventArgs \r
{\r
- public IAsyncResult AsyncResult;\r
- public Message Message;\r
+ private MessageQueue _sender;\r
+ private IAsyncResult _result;\r
+ private Message _message;\r
\r
- internal PeekCompletedEventArgs(AsyncResult AsyncResult, Message Message)\r
+ internal PeekCompletedEventArgs(MessageQueue sender, IAsyncResult result)\r
{\r
- this.AsyncResult = AsyncResult;\r
- this.Message = Message;\r
+ _sender = sender;\r
+ _result = result;\r
}\r
- \r
- [MonoTODO]\r
- ~PeekCompletedEventArgs()\r
+\r
+ public IAsyncResult AsyncResult\r
+ {\r
+ get { return _result; }\r
+ set { _result = value; }\r
+ }\r
+\r
+ public Message Message\r
{\r
+ get\r
+ {\r
+ if (_message == null)\r
+ {\r
+ _message = _sender.EndPeek (_result);\r
+ }\r
+ return _message;\r
+ }\r
}\r
}\r
}\r
{\r
public class ReceiveCompletedEventArgs: EventArgs \r
{\r
- public IAsyncResult AsyncResult;\r
- public Message Message;\r
+ private MessageQueue _sender;\r
+ private IAsyncResult _result;\r
+ private Message _message;\r
\r
- internal ReceiveCompletedEventArgs(AsyncResult AsyncResult, Message Message)\r
+ internal ReceiveCompletedEventArgs (MessageQueue sender, IAsyncResult result)\r
{\r
- this.AsyncResult = AsyncResult;\r
- this.Message = Message;\r
+ _sender = sender;\r
+ _result = result;\r
}\r
\r
- [MonoTODO]\r
- ~ReceiveCompletedEventArgs()\r
+ public IAsyncResult AsyncResult\r
{\r
+ get { return _result; }\r
+ set { _result = value; }\r
+ }\r
+\r
+ public Message Message\r
+ {\r
+ get\r
+ {\r
+ if (_message == null)\r
+ {\r
+ _message = _sender.EndPeek (_result);\r
+ }\r
+ return _message;\r
+ }\r
}\r
}\r
}\r
get { return trusteeType; }\r
set { trusteeType = value;}\r
}\r
- \r
- [MonoTODO]\r
- ~Trustee()\r
- {\r
- }\r
}\r
}\r
//\r
// (C) 2003 Peter Van Isacker\r
//\r
+\r
using System;\r
using System.Collections;\r
+using System.ComponentModel;\r
\r
namespace System.Messaging \r
{\r
private void initializeFromNames(string[] targetTypeNames)\r
{\r
}\r
- \r
+\r
+ [MessagingDescription ("XmlMsgTargetTypeNames")]\r
public string[] TargetTypeNames \r
{\r
get \r
}\r
set { initializeFromNames(value); }\r
}\r
- \r
- public Type[] TargetTypes \r
+\r
+ [Browsable (false)]\r
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]\r
+ [MessagingDescription ("XmlMsgTargetTypes")]\r
+ public Type[] TargetTypes\r
{\r
get {return this.targetTypes;}\r
set {targetTypes = value;}\r