示例#1
0
        /// <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;
                }
            }
        }
示例#2
0
 public void FixtureSetup()
 {        
     this.server = new Server();
 }