public ProfileManager(ForegroundProcess foregroundProcess, AudioSwitcher audioSwitcher) { _foregroundProcess = foregroundProcess; _audioSwitcher = audioSwitcher; _profileByApplication = AppConfigs.Configuration.ProfileSettings .Where((setting) => setting.ApplicationPath != null) .ToDictionary(setting => setting.ApplicationPath.ToLower()); _profileByHotkey = AppConfigs.Configuration.ProfileSettings .Where((setting) => setting.HotKey != null) .ToDictionary(setting => setting.HotKey); }
public ProfileManager(ForegroundProcess foregroundProcess, AudioSwitcher audioSwitcher, IAudioDeviceLister activeDeviceLister, ShowError showError) { _foregroundProcess = foregroundProcess; _audioSwitcher = audioSwitcher; _activeDeviceLister = activeDeviceLister; _showError = showError; _profileByApplication = AppConfigs.Configuration.ProfileSettings .Where((setting) => setting.ApplicationPath != null) .ToDictionary(setting => setting.ApplicationPath !.ToLower()); _profileByHotkey = AppConfigs.Configuration.ProfileSettings .Where((setting) => setting.HotKey != null) .ToDictionary(setting => setting.HotKey) !; }