diff options
author | Steven Shaw <steshaw@apache.org> | 2006-12-04 17:48:34 +0000 |
---|---|---|
committer | Steven Shaw <steshaw@apache.org> | 2006-12-04 17:48:34 +0000 |
commit | 7c87f93702c2f26090ca30633c1a44cdeaa8eff2 (patch) | |
tree | b958051da640622ee9af783b4ab73828f88fee3c | |
parent | 0a8af4bb049082c2601cea509c7a28ec4ff5ef87 (diff) | |
download | qpid-python-7c87f93702c2f26090ca30633c1a44cdeaa8eff2.tar.gz |
Fixes for .NET 1.1 compatibility
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482263 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | dotnet/Qpid.Client.Tests/failover/FailoverTxTest.cs | 2 | ||||
-rw-r--r-- | dotnet/Qpid.Client/Client/AmqBrokerInfo.cs | 2 |
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; |