public SongSearchProviderConfigurationViewModel( ISongSearchProvider songSearchProvider, Settings settings) { this.SongSearchProvider = songSearchProvider ?? throw new ArgumentNullException(nameof(songSearchProvider)); this.Settings = settings ?? throw new ArgumentNullException(nameof(settings)); }
public bool TryGetProvider(string id, out ISongSearchProvider provider) { return(this.Providers.TryGetValue(id, out provider)); }