Example #1
0
        internal void DiscardFence(LocationFence fence)
        {
            fence.StopWatching();

            lock (m_fences)
            {
                m_fences.Remove(fence);
            }
        }
Example #2
0
        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();
        }