// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Mvc.ViewComponents { /// /// Provides the currently cached collection of . /// /// /// /// The default implementation does not update the cache, it is up to the user /// to create or use an implementation that can update the available view components in /// the application. The implementor is also responsible for updating the /// in a thread safe way. /// /// /// Default consumers of this service, are aware of the version and will recache /// data as appropriate, but rely on the version being unique. /// /// public interface IViewComponentDescriptorCollectionProvider { /// /// Returns the current cached . /// ViewComponentDescriptorCollection ViewComponents { get; } } }