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