/// <summary>
 /// Initializes a new instance of the <see cref="NotificationManager"/> class.
 /// </summary>
 /// <param name="serverPort">The server port on which to receive notifications from the build server or registration requests from clients.</param>
 /// <param name="clientPort">The client port of host to connect to for broadcasting notifications.</param>
 /// <param name="userCache">The user cache.</param>
 /// <param name="initialize">if set to <c>true</c> initialize the manager.</param>
 public NotificationManager(int serverPort, int clientPort, UserCache userCache, bool initialize)
     : base(serverPort)
 {
     this.clientPort = clientPort;
     this.userCache = userCache;
     this.initialize = initialize;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="Service"/> class.
 /// </summary>
 public Service()
 {
     XmlConfigurator.Configure();
     this.InitializeComponent();
     UserCache userCache = new UserCache(Config.GetPriorityTimerPeriod(), Config.GetPriorityPeriod());
     this.notificationManager = new NotificationManager(Config.GetNotificationManagerPort(), Config.GetLightsManagerPort(), userCache, Config.GetInitializationEnabled());
     this.notificationManagerThread = new Thread(this.StartManager);
 }