Add property changed filtering events to Configuration

This commit is contained in:
Michael Bucari-Tovo 2023-01-06 22:56:00 -07:00
parent 5c73beff4b
commit 4725fe36d1
10 changed files with 397 additions and 194 deletions

View file

@ -81,11 +81,10 @@ namespace FileLiberator
LibraryBookDto = LibraryBook.ToDto();
cancellation =
Configuration.Instance
.SubscribeToPropertyChanged<long>(
nameof(Configuration.DownloadSpeedLimit),
(_, s) => DownloadSpeedChanged?.Invoke(this, s));
cancellation = Configuration.Instance
.ObservePropertyChanged<long>(
nameof(Configuration.DownloadSpeedLimit),
(_, s) => DownloadSpeedChanged?.Invoke(this, s));
}
}
}