public bool ConnectToHub(ISignalRClient client, ISignalRTransportCtrl transProtocol) { var connResult = false; if (!this.clientTransportMap.ContainsKey(client)) { connResult = transProtocol.Connect(); if (connResult) { this.clientTransportMap.Add(client, transProtocol); } } return connResult; }
public bool ConnectToHub(ISignalRClient client, ISignalRTransportCtrl transProtocol) { var connResult = false; if (!this.clientTransportMap.ContainsKey(client)) { connResult = transProtocol.Connect(); if (connResult) { this.clientTransportMap.Add(client, transProtocol); } } return(connResult); }