// 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. using System; using Microsoft.AspNetCore.Mvc.Rendering; namespace Microsoft.AspNetCore.Mvc.RazorPages { /// /// Provides methods to create a Razor page. /// public interface IPageActivatorProvider { /// /// Creates a Razor page activator. /// /// The . /// The delegate used to activate the page. Func CreateActivator(CompiledPageActionDescriptor descriptor); /// /// Releases a Razor page. /// /// The . /// The delegate used to dispose the activated page. Action CreateReleaser(CompiledPageActionDescriptor descriptor); } }