Пример #1
0
		internal BssTracker(SsidTracker owner, Bss bss)
		{
			_owner = owner;
			Bss = bss;
		}
Пример #2
0
		internal void AddSsidTracker(SsidTracker tracker)
		{
			_ssidTrackers.Add(tracker);
			_ssidTrackerDictionary.Add(tracker.Ssid.Name, tracker);
		}
Пример #3
0
		private void ApplyScan()
		{
			var time = DateTime.Now;
			var unactualTrackers = Result.SsidTrackers.ToList();
			for (var i = 0; i < Result.TargetNic.Wlan.Ssids.Count; i++)
			{
				var ssid = Result.TargetNic.Wlan.Ssids[i];
				SsidTracker tracker;
				if (Result.SsidTrackerDictionary.TryGetValue(ssid.Name, out tracker))
				{
					tracker.SetActual(time, ssid);
					tracker.ActualizeBssTrackers(time);
					unactualTrackers.Remove(tracker);
					continue;
				}
				tracker = new SsidTracker(ssid);
				tracker.SetActual(time, ssid);
				tracker.ActualizeBssTrackers(time);
				Result.AddSsidTracker(tracker);
			}

			foreach (var unactualTracker in unactualTrackers)
			{
				unactualTracker.SetUnactual();
				unactualTracker.ActualizeBssTrackers(time);
			}
		}