/// <summary> /// Create a new instance of <see cref="WindowService"/> /// </summary> /// <param name="winApiService">Instance of <see cref="IWinApiService"/> used to manage existing windows</param> /// <param name="processService">Instance of <see cref="IProcessService"/> used to manage active processes</param> public WindowService(IWinApiService winApiService, IProcessService processService) { _winApiService = winApiService ?? throw new ArgumentNullException(nameof(winApiService)); _processService = processService ?? throw new ArgumentNullException(nameof(processService)); }
/// <summary> /// Create a new instance of <see cref="WindowService"/> /// </summary> /// <param name="winApiService">Instance of <see cref="IWinApiService"/> used to manage displays</param> public DisplayService(IWinApiService winApiService) { _winApiService = winApiService ?? throw new ArgumentNullException(nameof(winApiService)); }