summaryrefslogtreecommitdiff
path: root/dotnet/Qpid.Client/Client
diff options
context:
space:
mode:
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
{