public SongParserPageViewModel( IEventAggregator eventAggregator, AnizanSongInfoProcessor anizanSongInfoProcessor) { this.EventAggregator = eventAggregator ?? throw new ArgumentNullException(nameof(eventAggregator)); this.AnizanSongInfoProcessor = anizanSongInfoProcessor ?? throw new ArgumentNullException(nameof(anizanSongInfoProcessor)); this.EventAggregator .GetEvent <ClearSearchInputEvent>() .Subscribe(() => { this.ClearInput(); }) .AddTo(this.Disposables); }
public AnisonDbSongNameSearchProvider( HttpClient httpClient, AnizanSongInfoProcessor songInfoConverter) : base(httpClient) { this.SongInfoConverter = songInfoConverter ?? throw new ArgumentNullException(nameof(songInfoConverter)); }