summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Client/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
commit4b1471a8b70bc2da921275b199753beab1023a3b (patch)
tree4d9ca2255022c57c45de07911babf806bb0a1017 /dotnet/Qpid.Client/Client
parent073c11477829c96d657f35a85cbf078a94a03d39 (diff)
downloadqpid-python-4b1471a8b70bc2da921275b199753beab1023a3b.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/qpid@479408 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dotnet/Qpid.Client/Client')
-rw-r--r--dotnet/Qpid.Client/Client/AMQConnection.cs6
-rw-r--r--dotnet/Qpid.Client/Client/BasicMessageConsumer.cs4
2 files changed, 9 insertions, 1 deletions
diff --git a/dotnet/Qpid.Client/Client/AMQConnection.cs b/dotnet/Qpid.Client/Client/AMQConnection.cs
index 12eb9f6a21..021d34f1bb 100644
--- a/dotnet/Qpid.Client/Client/AMQConnection.cs
+++ b/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/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs b/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
index 6d2f1c67b6..6ffa8d1d6a 100644
--- a/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs
+++ b/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
{