/// <summary> /// Validates only the collection folders for a User and goes no further /// </summary> /// <param name="cancellationToken">The cancellation token.</param> /// <param name="progress">The progress.</param> /// <returns>Task.</returns> public async Task ValidateCollectionFolders(IProgress <double> progress, CancellationToken cancellationToken) { Logger.Info("Validating collection folders for {0}", Name); await RootFolder.RefreshMetadata(cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested(); await RootFolder.ValidateChildren(progress, cancellationToken, recursive : false).ConfigureAwait(false); }
/// <summary> /// Reloads the root media folder /// </summary> /// <param name="cancellationToken">The cancellation token.</param> /// <param name="progress">The progress.</param> /// <returns>Task.</returns> public async Task ValidateMediaLibrary(IProgress <double> progress, CancellationToken cancellationToken) { Logger.Info("Validating media library for {0}", Name); await RootFolder.RefreshMetadata(cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested(); await RootFolder.ValidateChildren(progress, cancellationToken).ConfigureAwait(false); }