// 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.Collections.Generic; using System.Reflection; using Microsoft.AspNetCore.Mvc.RazorPages.Infrastructure; namespace Microsoft.AspNetCore.Mvc.RazorPages { /// /// A for a compiled Razor page. /// public class CompiledPageActionDescriptor : PageActionDescriptor { /// /// Initializes an empty . /// public CompiledPageActionDescriptor() { } /// /// Initializes a new instance of /// from the specified instance. /// /// The . public CompiledPageActionDescriptor(PageActionDescriptor actionDescriptor) : base(actionDescriptor) { } /// /// Gets the list of handler methods for the page. /// public IList HandlerMethods { get; set; } /// /// Gets or sets the of the type that defines handler methods for the page. This can be /// the same as and if the page does not have an /// explicit model type defined. /// public TypeInfo HandlerTypeInfo { get; set; } /// /// Gets or sets the declared model of the model for the page. /// Typically this will be the type specified by the @model directive /// in the razor page. /// public TypeInfo DeclaredModelTypeInfo { get; set; } /// /// Gets or sets the runtime model of the model for the razor page. /// This is the that will be used at runtime to instantiate and populate /// the model property of the page. /// public TypeInfo ModelTypeInfo { get; set; } /// /// Gets or sets the of the page. /// public TypeInfo PageTypeInfo { get; set; } } }