コード例 #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;
     }
 }