static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; HostFactory.Run(x => { x.SetDescription("XXY Scheduler Service"); x.SetDisplayName("XXY"); x.SetInstanceName("QM.Server"); x.SetServiceName("QM.Service"); x.Service(s => { var server = new QMServer(); return server; }); }); }
static void Main(string[] args) { AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; HostFactory.Run(x => { x.SetDescription("XXY Scheduler Service"); x.SetDisplayName("XXY"); x.SetInstanceName("QM.Server"); x.SetServiceName("QM.Service"); x.Service(s => { var server = new QMServer(); return(server); }); }); }