Beispiel #1
0
 private HostConnections GetHost(string channelUri)
 {
     lock (_hosts)
     {
         HostConnections host = (HostConnections)_hosts[channelUri];
         if (host == null)
         {
             host = new HostConnections(channelUri, this);
             _hosts[channelUri] = host;
         }
         return(host);
     }
 }
 private HostConnections GetHost(string channelUri)
 {
     lock (_hosts)
     {
         var host = (HostConnections)_hosts[channelUri];
         if (host == null)
         {
             host = new HostConnections(channelUri, this);
             _hosts[channelUri] = host;
         }
         return host;
     }
 }