コード例 #1
0
        public static void Run(string serviceName, RavenConfiguration configuration)
        {
            var service     = new RavenWin32Service(serviceName, configuration);
            var serviceHost = new Win32ServiceHost(service);

            serviceHost.Run();
        }
コード例 #2
0
        public static void Run(string serviceName, RavenConfiguration configuration, string[] args)
        {
            var service = new RavenWin32Service(serviceName, configuration, args);

            Program.RestartServer = service.Restart;
            var serviceHost = new Win32ServiceHost(service);

            serviceHost.Run();
        }