protected override void OnStart(string[] args) { Log.DebugFormat("Starting..."); try { var configuration = ServerConfiguration.ReadOrCreate(Constants.ApplicationConfigurationFile); _repository = PluginRepository.Create(); var repositoryProxy = new PluginRepositoryProxy(_repository, configuration); var ep = IPEndPointExtensions.Parse(configuration.Address); _server = new Server(ep, repositoryProxy); Log.InfoFormat("Started"); } catch (Exception e) { Log.ErrorFormat("Caught unexpected exception while trying to start: {0}", e); throw; } }