예제 #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);
     }
 }
예제 #2
0
 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;
     }
 }