Example #1
0
 public void Stop(StopServiceContext context)
 {
     if (m_locator != null)
     {
         m_locator.PositionChanged -= PositionChanged_Locator;
         m_locator = null;
     }
 }
Example #2
0
        public void Stop(StopServiceContext context)
        {
            if (m_source != null)
            {
                m_source.Cancel();
                m_source.Dispose();
                m_source = null;
            }

            m_updateTask = null;
        }
Example #3
0
 public static void Stop(StopServiceContext context)
 {
     var state = SetState(States.Stopped);
     if (state == States.Started)
     {
         StopService (Stations, context);
         StopService (Locator, context);
         StopService (Log, context);
         StopService (App, context);
     }
 }
Example #4
0
 public void Stop(StopServiceContext context)
 {
     m_isRunning = false;
 }
Example #5
0
 public void Stop(StopServiceContext context)
 {
     Runner  = null                              ;
 }
Example #6
0
 static void StopService(this IService service, StopServiceContext context)
 {
     if (service != null)
     {
         try
         {
             service.Stop(context);
         }
         catch (Exception exc)
         {
             Source.Common.Log.Exception ("Failed to stop service {0}: {1}", service.GetType().Name, exc);
         }
     }
 }