Ejemplo n.º 1
0
        private static void Main(string[] args)
        {
            var service = new EidssService(() => new ReportHostKeeper(), TraceHelper.ReportsCategory);

            if (args.Contains("/c"))
            {
                service.RunInConsole();
            }
            else
            {
                ServiceBase.Run(service);
            }
        }
Ejemplo n.º 2
0
        private static void Main(string[] args)
        {
            var container = GetStructureMapContainer();
            var service   = new EidssService(() => container.GetInstance <AvrHostKeeper>(), TraceHelper.AVRCategory);

            if (args.Contains("/c"))
            {
                service.RunInConsole();
            }
            else
            {
                ServiceBase.Run(service);
            }
        }