File: IRazorPageActivator.cs
Web Access
Project: src\src\Mvc\Mvc.Razor\src\Microsoft.AspNetCore.Mvc.Razor.csproj (Microsoft.AspNetCore.Mvc.Razor)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using Microsoft.AspNetCore.Mvc.Rendering;
 
namespace Microsoft.AspNetCore.Mvc.Razor;
 
/// <summary>
/// Provides methods to activate properties on a <see cref="IRazorPage"/> instance.
/// </summary>
public interface IRazorPageActivator
{
    /// <summary>
    /// When implemented in a type, activates an instantiated page.
    /// </summary>
    /// <param name="page">The page to activate.</param>
    /// <param name="context">The <see cref="ViewContext"/> for the executing view.</param>
    void Activate(IRazorPage page, ViewContext context);
}