From 5cf5c7b992b9fbb789d181d74684da8c4addc44d Mon Sep 17 00:00:00 2001 From: Steven Shaw Date: Sun, 26 Nov 2006 19:29:24 +0000 Subject: 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 --- qpid/dotnet/Qpid.Client/Client/AMQConnection.cs | 6 +++++- qpid/dotnet/Qpid.Client/Client/BasicMessageConsumer.cs | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'qpid/dotnet/Qpid.Client/Client') 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 /// /// Maps from session id (Integer) to AmqChannel instance /// - 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 { -- cgit v1.2.1