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