Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
//
// AssemblyInfo.cs
//
// Author:
// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
//
// (C) 2003 Ximian, Inc. http://www.ximian.com
//
//
// 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.Reflection;
using System.Resources;
using System.Security;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about the System.Messaging assembly
[assembly: AssemblyTitle ("System.Messaging.dll")]
[assembly: AssemblyDescription ("System.Messaging.dll")]
[assembly: AssemblyDefaultAlias ("System.Messaging.dll")]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
[assembly: AssemblyVersion (Consts.FxVersion)]
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
[assembly: NeutralResourcesLanguage ("en-US")]
[assembly: ComVisible (false)]
[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile("../msfinal.pub")]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: CompilationRelaxations (CompilationRelaxations.NoStringInterning)]

View File

@@ -0,0 +1,13 @@
2008-04-23 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added missing attributes
2004-06-03 Raja R Harinath <rharinath@novell.com>
* Consts.cs: Add. Copied from System/Assembly/Consts.cs.
2004-04-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
* AssemblyInfo.cs: Added
* ChangeLog: Added
* Locale.cs: Added

View File

@@ -0,0 +1,20 @@
2008-09-28 Michael Barker <mike@middlesoft.co.uk>
* Makefile: Adding additional libraries for tests.
2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
* Makefile: Activate unit tests.
* System.Messaging_test.dll.sources: New. Source list for unit tests.
2004-08-31 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* System.Messaging.Design/QueuePathDialog.cs :Commented out some bits because it would not compile as it couldn't find System.Windows.Forms.Design
2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
* Makefile: added extra assembly references
* System.Messaging.dll.sources: added new classes in
System.Messaging.Design namespace
2003-02-23 Rafael Teixeira <rafaelteixeirabr@hotmail.com>
* added just files enough to compile a dummy DLL for now

View File

@@ -0,0 +1,22 @@
thisdir = class/System.Messaging
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Messaging.dll
LIB_MCS_FLAGS = /resource:System.Messaging/MessageQueue.resx \
/r:System.dll \
/r:System.Configuration.Install.dll \
/r:System.Drawing.dll \
/r:System.Windows.Forms.dll \
/r:System.Xml \
/r:Mono.Messaging.dll
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169 \
/r:nunit.mocks.dll
EXTRA_DISTFILES = System.Messaging/MessageQueue.resx
ifdef MESSAGING_NO_WINFORMS
LIB_MCS_FLAGS += -d:NO_WINFORMS_DEPENDENCY
endif
include ../../build/library.make

View File

@@ -0,0 +1,7 @@
2004-06-02 Gert Driesen <drieseng@users.sourceforge.net>
* MessageFormatterConverter.cs: added file
* MessageQueueConverter.cs: added file
* QueuePathDialog.cs: added file
* QueuePathEditor.cs: added file
* TimeoutConverter.cs: added file

View File

@@ -0,0 +1,86 @@
//
// System.Messaging.Design.MessageQueueConverter
//
// Authors:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) 2004 Novell
//
//
// 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.ComponentModel;
using System.ComponentModel.Design.Serialization;
using System.Globalization;
namespace System.Messaging.Design
{
internal class MessageFormatterConverter : TypeConverter
{
[MonoTODO]
public MessageFormatterConverter ()
{
}
public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
{
return (sourceType == typeof(string));
}
public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
{
if (destinationType == typeof(InstanceDescriptor))
return true;
return base.CanConvertTo (context, destinationType);
}
[MonoTODO]
public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override StandardValuesCollection GetStandardValues (ITypeDescriptorContext context)
{
throw new NotImplementedException ();
}
public override bool GetStandardValuesExclusive (ITypeDescriptorContext context)
{
return true;
}
public override bool GetStandardValuesSupported (ITypeDescriptorContext context)
{
return true;
}
}
}

View File

@@ -0,0 +1,62 @@
//
// System.Messaging.Design.MessageQueueConverter
//
// Authors:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) 2004 Novell
//
//
// 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.ComponentModel;
using System.Globalization;
namespace System.Messaging.Design
{
internal class MessageQueueConverter : TypeConverter
{
[MonoTODO]
public MessageQueueConverter ()
{
}
[MonoTODO]
public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,78 @@
//
// System.Messaging.Design.QueuePathDialog
//
// Authors:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) 2004 Novell
//
//
// 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.
//
#if !NO_WINFORMS_DEPENDENCY
using System.ComponentModel;
using System.Drawing.Design;
using System.Windows.Forms;
namespace System.Messaging.Design
{
[MonoTODO]
public class QueuePathDialog : Form
{
[MonoTODO]
public QueuePathDialog (IServiceProvider provider)
{
throw new NotImplementedException ();
}
[MonoTODO]
public QueuePathDialog (System.Windows.Forms.Design.IUIService uiService)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void ChoosePath ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void DoubleClicked (object source, EventArgs e)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void SelectQueue (MessageQueue queue)
{
throw new NotImplementedException ();
}
[MonoTODO]
public string Path {
get {
throw new NotImplementedException ();
}
}
}
}
#endif

View File

@@ -0,0 +1,55 @@
//
// System.Messaging.Design.QueuePathEditor
//
// Authors:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) 2004 Novell
//
//
// 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.ComponentModel;
using System.Drawing.Design;
namespace System.Messaging.Design
{
public class QueuePathEditor : UITypeEditor
{
[MonoTODO]
public QueuePathEditor ()
{
}
[MonoTODO]
public override object EditValue (ITypeDescriptorContext context, IServiceProvider provider, object value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override UITypeEditorEditStyle GetEditStyle (ITypeDescriptorContext context)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,63 @@
//
// System.Messaging.Design.TimeoutConverter
//
// Authors:
// Gert Driesen (drieseng@users.sourceforge.net)
//
// (C) 2004 Novell
//
//
// 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.Globalization;
namespace System.Messaging
{
internal class TimeoutConverter : TypeConverter
{
public TimeoutConverter ()
{
}
public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
{
if (sourceType == typeof(string))
return true;
return base.CanConvertFrom (context, sourceType);
}
[MonoTODO]
public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
{
throw new NotImplementedException ();
}
[MonoTODO]
public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,54 @@
Assembly/AssemblyInfo.cs
../../build/common/Consts.cs
../../build/common/Locale.cs
System.Messaging/AccessControlEntry.cs
System.Messaging/AccessControlEntryType.cs
System.Messaging/AccessControlList.cs
System.Messaging/AcknowledgeTypes.cs
System.Messaging/Acknowledgment.cs
System.Messaging/ActiveXMessageFormatter.cs
System.Messaging/BinaryMessageFormatter.cs
System.Messaging/CryptographicProviderType.cs
System.Messaging/DefaultPropertiesToSend.cs
System.Messaging/EncryptionAlgorithm.cs
System.Messaging/EncryptionRequired.cs
System.Messaging/GenericAccessRights.cs
System.Messaging/HashAlgorithm.cs
System.Messaging/IMessageFormatter.cs
System.Messaging/Message.cs
System.Messaging/MessageEnumerator.cs
System.Messaging/MessagePriority.cs
System.Messaging/MessagePropertyFilter.cs
System.Messaging/MessageQueueAccessControlEntry.cs
System.Messaging/MessageQueueAccessRights.cs
System.Messaging/MessageQueueCriteria.cs
System.Messaging/MessageQueue.cs
System.Messaging/MessageQueueEnumerator.cs
System.Messaging/MessageQueueErrorCode.cs
System.Messaging/MessageQueueException.cs
System.Messaging/MessageQueueInstaller.cs
System.Messaging/MessageQueuePermissionAccess.cs
System.Messaging/MessageQueuePermissionAttribute.cs
System.Messaging/MessageQueuePermission.cs
System.Messaging/MessageQueuePermissionEntryCollection.cs
System.Messaging/MessageQueuePermissionEntry.cs
System.Messaging/MessageQueueTransaction.cs
System.Messaging/MessageQueueTransactionStatus.cs
System.Messaging/MessageQueueTransactionType.cs
System.Messaging/MessageType.cs
System.Messaging/MessagingDescriptionAttribute.cs
../../build/common/MonoTODOAttribute.cs
System.Messaging/PeekCompletedEventArgs.cs
System.Messaging/PeekCompletedEventHandler.cs
System.Messaging/QueueAccessMode.cs
System.Messaging/ReceiveCompletedEventArgs.cs
System.Messaging/ReceiveCompletedEventHandler.cs
System.Messaging/StandardAccessRights.cs
System.Messaging/Trustee.cs
System.Messaging/TrusteeType.cs
System.Messaging/XmlMessageFormatter.cs
System.Messaging.Design/MessageFormatterConverter.cs
System.Messaging.Design/MessageQueueConverter.cs
System.Messaging.Design/TimeoutConverter.cs
System.Messaging.Design/QueuePathDialog.cs
System.Messaging.Design/QueuePathEditor.cs

View File

@@ -0,0 +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
}
}

View File

@@ -0,0 +1,42 @@
//
// 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 AccessControlEntryType
{
Allow = 1,
Deny = 3,
Revoke = 4,
Set = 2
}
}

View File

@@ -0,0 +1,71 @@
//
// 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.
//
//
// 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();
}
}
}

View File

@@ -0,0 +1,47 @@
//
// 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
{
[Flags]
[Serializable]
public enum AcknowledgeTypes
{
FullReachQueue = 5,
FullReceive = 14,
NegativeReceive = 8,
None = 0,
NotAcknowledgeReachQueue = 4,
NotAcknowledgeReceive = 12,
PositiveArrival = 1,
PositiveReceive = 2
}
}

View File

@@ -0,0 +1,55 @@
//
// 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
// 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 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
}
}

View File

@@ -0,0 +1,73 @@
//
// 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.
//
//
// 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();
}
}
}

View File

@@ -0,0 +1,120 @@
//
// 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.
//
//
// System.Messaging
//
// Authors:
// Peter Van Isacker (sclytrack@planetinternet.be)
// Rafael Teixeira (rafaelteixeirabr@hotmail.com)
// Michael Barker (mike@middlesoft.co.uk)
//
// (C) 2003 Peter Van Isacker
//
using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
namespace System.Messaging
{
public class BinaryMessageFormatter : IMessageFormatter, ICloneable
{
private BinaryFormatter _formatter;
public BinaryMessageFormatter ()
{
_formatter = new BinaryFormatter ();
}
public BinaryMessageFormatter (FormatterAssemblyStyle topObjectFormat, FormatterTypeStyle typeFormat)
{
_formatter = new BinaryFormatter ();
_formatter.AssemblyFormat = topObjectFormat;
_formatter.TypeFormat = typeFormat;
}
[DefaultValue (0)]
[MessagingDescription ("MsgTopObjectFormat")]
public FormatterAssemblyStyle TopObjectFormat {
get {
return _formatter.AssemblyFormat;
}
set {
_formatter.AssemblyFormat = value;
}
}
[DefaultValue (0)]
[MessagingDescription ("MsgTypeFormat")]
public FormatterTypeStyle TypeFormat {
get {
return _formatter.TypeFormat;
}
set {
_formatter.TypeFormat = value;
}
}
[MonoTODO ("only return true if body type is binary")]
public bool CanRead (Message message)
{
if (message == null)
throw new ArgumentNullException ();
return message.BodyStream.CanRead;
}
[MonoTODO ("throw InvalidOperationException if message body is not binary")]
public object Read (Message message)
{
if (message == null)
throw new ArgumentNullException ();
message.BodyStream.Seek (0, SeekOrigin.Begin);
return _formatter.Deserialize (message.BodyStream);
}
[MonoTODO ("throw InvalidOperationException if message body is not binary")]
public void Write (Message message, object obj)
{
if (message == null)
throw new ArgumentNullException ();
Stream stream = message.BodyStream;
if (stream == null) {
stream = new MemoryStream ();
message.BodyStream = stream;
}
message.BodyType = 768;
_formatter.Serialize (stream, obj);
}
public object Clone ()
{
return new BinaryMessageFormatter (TopObjectFormat, TypeFormat);
}
}
}

View File

@@ -0,0 +1,144 @@
2010-02-09 Chris Toshok <toshok@ximian.com>
* MessageQueue.cs: stub out the ctor that takes a QueueAccessMode.
* QueueAccessMode.cs: new enum.
2009-07-11 Michael Barker <mike@middlesoft.co.uk>
* MessageQueueException.cs: Removed MonoTODO.
2009-05-23 Michael Barker <mike@middlesoft.co.uk>
* MessageEnumerator.cs: Added calls to the delegate IMessageEnumerator
for methods that use a timeout and added exception handling.
2008-12-20 Michael Barker <mike@middlesoft.co.uk>
* MessageQueue.cs: Added implementation for async methods: BeginReceive,
BeginPeek, EndReceive and EndPeek. Set up event handlers to propagate
Asycn ReceiveCompleted/PeekCompleted events to System.Messaging API users.
2008-11-23 Michael Barker <mike@middlesoft.co.uk>
* MessageQueue.cs: Added support for MessageQueueTransactionType methods,
ReceiveBy{Id,CorrelationId} and PeekBy{Id,CorrelationId} methods.
2008-11-02 Michael Barker <mike@middlesoft.co.uk>
* MessageQueue.cs: Added implementation for deleting, purging, sending with
labels and message transactions.
2008-10-27 Michael Barker <mike@middlesoft.co.uk>
* MessageQueueTransaction.cs: Delegated all methods to IMessageQueueTransaction
from Mono.Messaging.
2008-10-12 Michael Barker <mike@middlesoft.co.uk>
* MessageQueue.cs: Implemented GetMessageEnumerator().
* MessageEnumerator.cs: Implemented, delegate most work to Mono.Messaging.
* Message.cs: Removed [MonoTODO] and small style fix.
2008-09-29 Michael Barker <mike@middlesoft.co.uk>
* IMessageFormatter.cs: Added internal enum for body types.
* XmlMessageFormatter.cs: Implemented read/write methods.
* BinaryMessageFormatter.cs: Implemented read/write methods.
* Message.cs: Implemented formatter support.
* MessageQueue.cs: Implemented Send and Receive methods. Implemented
formatter support.
* MessageQueueException.cs: Added custom error messages.
2008-09-09 Michael Barker <mike@middlesoft.co.uk>
* Message.cs: Change properties to delegate to IMessage. Added internal
constructor.
* MessageQueue.cs: Change properties to delegate to IMessageQueue. Added
internal constructor. Removed private constructor.
2004-09-10 Sebastien Pouliot <sebastien@ximian.com>
* MessageQueuePermission.cs: Implemented enough TODO so compilers can
call ToXml (and the runtime can call FromXml) without exceptions.
* MessageQueuePermissionAttribute.cs: Implemented all TODO.
* MessageQueuePermissionEntry.cs: Implemented all TODO.
* MessageQueuePermissionEntryCollection.cs: Removed Clear on On*
methods and added TODO.
2004-06-16 Gert Driesen <drieseng@users.sourceforge.net>
* AccessControlEntryType.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* AcknowledgeTypes.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* CryptographicProviderType.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* EncryptionAlgorithm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* EncryptionRequired.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* GenericAccessRights.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* HashAlgortihm.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessagePriority.cs: fixed enum field values to correspond with
MS.NET, removed TODO
* MessageQueueErrorCode.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* MessageQueueException.cs: marked serializable
* MessageQueuePermissionAccess.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionStatus.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageQueueTransactionType.cs: fixed enum field values to
correspond with MS.NET, removed TODO
* MessageType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
* StandardAccessRights.cs: fixed enum field values to correspond
with MS.NET, removed TODO
* TrusteeType.cs: fixed enum field values to correspond with MS.NET,
removed TODO
2004-06-03 Duncan Mak <duncan@ximian.com>
* MonoTODO.cs: Remove the Description field and use Comment, this
makes it consistent with the other TODOAttributes, and it also
fixes the build.
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

View File

@@ -0,0 +1,50 @@
//
// 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
// 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 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
}
}

Some files were not shown because too many files have changed in this diff Show More