internal void DiscardFence(LocationFence fence) { fence.StopWatching(); lock (m_fences) { m_fences.Remove(fence); } }
public override void Stop() { HideTask(); if (ShouldHoldLocations && Task.Locations != null) { foreach (var l in Task.Locations) { RecentlyUsedLocationService.Instance.ReleaseLocation(l); } } if (m_fence != null) { m_fence.StopWatching(); m_fence = null; } base.Stop(); }