public static void Run(string serviceName, RavenConfiguration configuration) { var service = new RavenWin32Service(serviceName, configuration); var serviceHost = new Win32ServiceHost(service); serviceHost.Run(); }
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(); }