/// <summary> /// Initializes the service class. /// </summary> /// <exception cref="ServerInitializationException"/> public Service() { InitializeComponent(); try { this.server = new Server(); } catch (ServerInitializationException e) { log.Error(e.Message, e); // Debug messages log.Debug("Error initializing Server class, trying again...", e); try { this.server = new Server(); } catch (ServerInitializationException ex) { log.Fatal(ex.Message, ex); throw ex; } } }
public void FixtureSetup() { this.server = new Server(); }