Esempio n. 1
0
        static void Main(string[] args)
        {
            EnvironmentChecker.EnsureIsAdministrator();

            HostFactory.New(x =>
            {
                x.SetServiceName("servicedog");
                x.SetDescription("Captures and analyses problems that interfere on the communications between local and remote applications.");
                x.Service <ServiceRunner>(sc =>
                {
                    sc.ConstructUsing(() => new ServiceRunner(new MessageDispatcher(), new ProcessTable()));
                    sc.WhenStarted(s => s.Start());
                    sc.WhenStopped(s => s.Stop());
                    sc.WhenShutdown(s => s.Shutdown());
                });
            });
        }
Esempio n. 2
0
 public void EnsureConfiguration()
 {
     EnvironmentChecker.EnsureIsAdministrator();
 }