// 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 methods to instantiate and release a ViewComponent. /// public interface IViewComponentActivator { /// /// Instantiates a ViewComponent. /// /// /// The for the executing . /// object Create(ViewComponentContext context); /// /// Releases a ViewComponent instance. /// /// /// The associated with the . /// /// The to release. void Release(ViewComponentContext context, object viewComponent); } }