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; } }