/// <summary> /// Initializes a new instance of the PresenterBuilder class. /// </summary> /// <param name="windowsServiceView">IWindowsServiceView.</param> /// <exception cref="ArgumentNullException">windowsServiceView is null.</exception> public PresenterBuilder(IWindowsServiceView windowsServiceView) { if (windowsServiceView == null) { throw new ArgumentNullException("windowsServiceView", Resources.ArgumentNullException); } _viewType = ViewType.WindowsService; _windowsServiceView = windowsServiceView; }
/// <summary> /// Initializes a new instance of the WindowsServiceViewPresenter class. /// </summary> /// <param name="windowsServiceView">Windows service view.</param> /// <param name="fileWatcherController">FileWatcherController.</param> /// <param name="logger">Logger.</param> /// <param name="formatter">Log formatter.</param> public WindowsServiceViewPresenter(IWindowsServiceView windowsServiceView, FileWatcherController fileWatcherController, ILogger logger, IFormatter formatter) : base(fileWatcherController, logger, formatter) { if (windowsServiceView == null) { throw new ArgumentNullException("windowsServiceView", Resources.ArgumentNullException); } _windowsServiceView = windowsServiceView; SubscribeToWindowsServiceViewEvents(); }