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);
        }
Exemplo n.º 2
0
 public AnisonDbSongNameSearchProvider(
     HttpClient httpClient,
     AnizanSongInfoProcessor songInfoConverter) : base(httpClient)
 {
     this.SongInfoConverter = songInfoConverter ?? throw new ArgumentNullException(nameof(songInfoConverter));
 }