summaryrefslogtreecommitdiff
path: root/csharp/src/Ice/ConnectionFactory.cs
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
committerJose <jose@zeroc.com>2016-05-11 16:51:13 +0200
commit20ead35bcd15c258b00da6b1a16d26107f8dea8b (patch)
tree0aa99a82b9d56383c76c372fc1050dfd5493b4e9 /csharp/src/Ice/ConnectionFactory.cs
parentFixed make install issue (diff)
downloadice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.bz2
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.tar.xz
ice-20ead35bcd15c258b00da6b1a16d26107f8dea8b.zip
CSharp mapping cleanup
- Remove code support for old ussuported frameworks (SILVERLIGHT, COMPACT, MONO) - Remove code support for deprecated collection mappings clr:collection
Diffstat (limited to 'csharp/src/Ice/ConnectionFactory.cs')
-rw-r--r--csharp/src/Ice/ConnectionFactory.cs19
1 files changed, 4 insertions, 15 deletions
diff --git a/csharp/src/Ice/ConnectionFactory.cs b/csharp/src/Ice/ConnectionFactory.cs
index 8c56a2fbab3..d68b7e808c1 100644
--- a/csharp/src/Ice/ConnectionFactory.cs
+++ b/csharp/src/Ice/ConnectionFactory.cs
@@ -11,13 +11,9 @@ namespace IceInternal
{
using System;
- using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
- using System.Net.Sockets;
- using System.Threading;
using System.Text;
- using IceUtilInternal;
public class MultiDictionary<K, V> : Dictionary<K, ICollection<V>>
{
@@ -28,7 +24,7 @@ namespace IceInternal
if(!this.TryGetValue(key, out list))
{
list = new List<V>();
- this.Add(key, list);
+ Add(key, list);
}
list.Add(value);
}
@@ -40,7 +36,7 @@ namespace IceInternal
list.Remove(value);
if(list.Count == 0)
{
- this.Remove(key);
+ Remove(key);
}
}
}
@@ -148,7 +144,6 @@ namespace IceInternal
}
}
-
public void create(EndpointI[] endpts, bool hasMore, Ice.EndpointSelectionType selType,
CreateConnectionCallback callback)
{
@@ -1303,9 +1298,7 @@ namespace IceInternal
}
finally
{
-#if !COMPACT && !SILVERLIGHT
System.Environment.FailFast(s);
-#endif
}
return false;
}
@@ -1329,9 +1322,7 @@ namespace IceInternal
}
finally
{
-#if !COMPACT && !SILVERLIGHT
System.Environment.FailFast(s);
-#endif
}
return false;
}
@@ -1409,9 +1400,7 @@ namespace IceInternal
}
finally
{
-#if !COMPACT && !SILVERLIGHT
System.Environment.FailFast(s);
-#endif
}
}
@@ -1725,13 +1714,13 @@ namespace IceInternal
_adapter.getThreadPool().unregister(this, SocketOperation.Read);
}
}
- catch(SystemException ex)
+ catch(SystemException)
{
if(_acceptor != null)
{
_acceptor.close();
}
- throw ex;
+ throw;
}
}