protected override void OnStart(string[] args) { serverManager = new ServerManager(); Logger.Info("Старт WCF..."); try { hostServerUnitManager = new ServiceHost(serverManager); hostServerUnitManager.Open(); } catch (Exception ex) { Logger.Error("StartWCFHosts : ServiceHost... ctor", ex); throw; } }
protected override void OnStart(string[] args) { serverManager = new ServerManager(); Logger.Info("Старт WCF..."); try { hostServerUnitManager = new ServiceHost(serverManager); hostServerUnitManager.Open(); } catch (Exception ex) { Logger.Error("StartWCFHosts : ServiceHost... ctor", ex); throw; } }