summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs2
-rw-r--r--dotnet/Qpid.Client/Client/AmqBrokerInfo.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs b/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs
index 4538fca148..923d8c4049 100644
--- a/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs
+++ b/dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs
@@ -123,7 +123,7 @@ namespace Qpid.Client.Tests.failover
if (useThread)
{
NoWaitConsumer noWaitConsumer = new NoWaitConsumer(this, consumer, _noWait);
- new Thread(noWaitConsumer.Run).Start();
+ new Thread(new ThreadStart(noWaitConsumer.Run)).Start();
}
else
{
diff --git a/dotnet/Qpid.Client/Client/AmqBrokerInfo.cs b/dotnet/Qpid.Client/Client/AmqBrokerInfo.cs
index 3fc2512efb..36dd93d3d3 100644
--- a/dotnet/Qpid.Client/Client/AmqBrokerInfo.cs
+++ b/dotnet/Qpid.Client/Client/AmqBrokerInfo.cs
@@ -102,7 +102,7 @@ namespace Qpid.Client
// Fix for when there is port data but it is not automatically parseable by getPort().
String auth = connection.Authority;
- if (auth != null && auth.Contains(":"))
+ if (auth != null && auth.IndexOf(':') != -1)
{
int start = auth.IndexOf(":") + 1;
int end = start;