public void Stop(StopServiceContext context) { if (m_locator != null) { m_locator.PositionChanged -= PositionChanged_Locator; m_locator = null; } }
public void Stop(StopServiceContext context) { if (m_source != null) { m_source.Cancel(); m_source.Dispose(); m_source = null; } m_updateTask = null; }
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); } }
public void Stop(StopServiceContext context) { m_isRunning = false; }
public void Stop(StopServiceContext context) { Runner = null ; }
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); } } }