main
 1using gorilla.infrastructure.container;
 2using gorilla.infrastructure.threading;
 3using utility;
 4
 5namespace solidware.financials.windows.ui.bootstrappers
 6{
 7    public class StopEssentialServices : NeedsShutdown
 8    {
 9        DependencyRegistry registry;
10
11        public StopEssentialServices(DependencyRegistry registry)
12        {
13            this.registry = registry;
14        }
15
16        public void run()
17        {
18            registry.get_a<CommandProcessor>().stop();
19            registry.get_a<Timer>().Dispose();
20        }
21    }
22}