summaryrefslogtreecommitdiff
path: root/qpid/dotnet/Qpid.Client
diff options
context:
space:
mode:
authorSteven Shaw <steshaw@apache.org>2006-11-26 19:29:24 +0000
committerSteven Shaw <steshaw@apache.org>2006-11-26 19:29:24 +0000
commit5cf5c7b992b9fbb789d181d74684da8c4addc44d (patch)
tree5fb330a089716a4c700fd505996ecd530e9e3438 /qpid/dotnet/Qpid.Client
parentdce8ddbf00c9435e37df40d01514ded110707211 (diff)
downloadqpid-python-5cf5c7b992b9fbb789d181d74684da8c4addc44d.tar.gz
A build script for Mono and a couple of small changes to enable compiling and running on
Linux. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@479408 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/dotnet/Qpid.Client')
-rw-r--r--qpid/dotnet/Qpid.Client/Client/AMQConnection.cs6
-rw-r--r--qpid/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs4
2 files changed, 9 insertions, 1 deletions
diff --git a/qpid/dotnet/Qpid.Client/Client/AMQConnection.cs b/qpid/dotnet/Qpid.Client/Client/AMQConnection.cs
index 12eb9f6a21..021d34f1bb 100644
--- a/qpid/dotnet/Qpid.Client/Client/AMQConnection.cs
+++ b/qpid/dotnet/Qpid.Client/Client/AMQConnection.cs
@@ -90,7 +90,7 @@ namespace Qpid.Client
/// <summary>
/// Maps from session id (Integer) to AmqChannel instance
/// </summary>
- private readonly LinkedHashtable _sessions = new LinkedHashtable();
+ private readonly IDictionary _sessions = new LinkedHashtable();
private ExceptionListenerDelegate _exceptionListener;
@@ -551,7 +551,11 @@ namespace Qpid.Client
{
Interlocked.Exchange(ref _closed, CLOSED);
}
+#if __MonoCS__
+ _exceptionListener(xe);
+#else
_exceptionListener.Invoke(xe);
+#endif
}
else
{
diff --git a/qpid/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs b/qpid/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
index 6d2f1c67b6..6ffa8d1d6a 100644
--- a/qpid/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
+++ b/qpid/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
@@ -316,7 +316,11 @@ namespace Qpid.Client
{
if (_messageListener != null)
{
+#if __MonoCS__
+ _messageListener(jmsMessage);
+#else
_messageListener.Invoke(jmsMessage);
+#endif
}
else
{