Exemple #1
0
        public async Task SetRating(LibraryHierarchyNode libraryHierarchyNode, byte rating)
        {
            using (var task = new UpdateLibraryRatingTask(libraryHierarchyNode, rating))
            {
                task.InitializeComponent(this.Core);
                await this.OnBackgroundTask(task).ConfigureAwait(false);

                await task.Run().ConfigureAwait(false);
            }
        }
Exemple #2
0
        public async Task SetRating(IEnumerable <LibraryItem> libraryItems, byte rating)
        {
            using (var task = new UpdateLibraryRatingTask(libraryItems, rating))
            {
                task.InitializeComponent(this.Core);
                await this.OnBackgroundTask(task).ConfigureAwait(false);

                await task.Run().ConfigureAwait(false);
            }
        }