Exemple #1
0
        public void flushLink(string imei)
        {
            if (imei.IsNotNullAndEmpty())
            {
                string cid = Context.ConnectionId;

                var modcon = _hubInfo.FirstOrDefault(f => f.connectionId == cid);
                if (modcon.IsNull())
                {
                    DeviceHubInfo hubinfo = new DeviceHubInfo()
                    {
                        IMEI         = imei,
                        connectionId = cid
                    };
                    _hubInfo.Add(hubinfo);
                }
                CurrentClient.uploadLocation();
            }
        }
Exemple #2
0
 public void AddHub(NodePeer h)
 {
     HubList.Add(h);
 }