Пример #1
0
        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;
                });
            });
        }
Пример #2
0
        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);
                });
            });
        }