public void Stop() { ServiceSupportTest.Log("stopping ..."); stopping.Release(); ServiceSupportTest.Log("stopping sync released ..."); serviceSupport.Stop(true); wasStopped = true; ServiceSupportTest.Log("releasing stopped sync ..."); stopped.Release(); ServiceSupportTest.Log("stopped ..."); }
public void Execute(IRunnable runnable) { if (runnable == serviceSupport.StartedCommand) { ServiceSupportTest.Log("waiting to start ..."); starting.Acquire(); ServiceSupportTest.Log("starting ..."); runnable.Run(); wasStarted = true; ServiceSupportTest.Log("releasing started sync ..."); started.Release(); ServiceSupportTest.Log("started ..."); } else { ServiceSupportTest.Log("unexpected runnable: " + runnable); runnable.Run(); } }