protected override void OnStart(string[] args) { // todo: add event registration on error var serviceHostFactory = new ClusterManagerServiceHostFactory(); _serviceHost = serviceHostFactory.CreateServiceHost(); _serviceHost.Open(); }
private static void StartService() { WriteWelcomeHeader(); // TODO: redirect logging to console try { var serviceHostFactory = new ClusterManagerServiceHostFactory(); var serviceHost = serviceHostFactory.CreateServiceHost(); serviceHost.Open(); } catch (Exception ex) { Console.WriteLine("Error initializing Brightstar service: {0}", ex.Message); } }
private void StartClusterManagerService() { var serviceHostFactory = new ClusterManagerServiceHostFactory(); _serviceHost = serviceHostFactory.CreateServiceHost(); _serviceHost.Open(); }