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(); } }
public void AddHub(NodePeer h) { HubList.Add(h); }