3 types derived from RazorCompiledItem
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
73private sealed class HotReloadRazorCompiledItem : RazorCompiledItem
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestRazorCompiledItem.cs (1)
9public class TestRazorCompiledItem : RazorCompiledItem
Microsoft.AspNetCore.Razor.Runtime (1)
Hosting\DefaultRazorCompiledItem.cs (1)
6internal sealed class DefaultRazorCompiledItem : RazorCompiledItem
58 references to RazorCompiledItem
Microsoft.AspNetCore.Mvc.Razor (14)
ApplicationParts\CompiledRazorAssemblyPart.cs (1)
31IEnumerable<RazorCompiledItem> IRazorCompiledItemProvider.CompiledItems
ApplicationParts\IRazorCompiledItemProvider.cs (3)
9/// Exposes one or more <see cref="RazorCompiledItem"/> instances from an <see cref="ApplicationPart"/>. 14/// Gets a sequence of <see cref="RazorCompiledItem"/> instances. 16IEnumerable<RazorCompiledItem> CompiledItems { get; }
ApplicationParts\RazorCompiledItemFeatureProvider.cs (4)
37foreach (var item in provider.CompiledItems) 39var compiledItem = item; 75private readonly RazorCompiledItem _previous; 76public HotReloadRazorCompiledItem(RazorCompiledItem previous, Type type)
Compilation\CompiledViewDescriptor.cs (6)
24/// <param name="item">The <see cref="RazorCompiledItem"/>.</param> 25public CompiledViewDescriptor(RazorCompiledItem item) 38/// <param name="item">The <see cref="RazorCompiledItem"/>.</param> 40public CompiledViewDescriptor(RazorCompiledItem item, RazorViewAttribute attribute) 91/// Gets the <see cref="RazorCompiledItem"/> descriptor for this view. 93public RazorCompiledItem? Item { get; set; }
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
ChecksumValidator.cs (2)
14public static bool IsRecompilationSupported(RazorCompiledItem item) 28public static bool IsItemValid(RazorProjectFileSystem fileSystem, RazorCompiledItem item)
RuntimeViewCompiler.cs (1)
329var item = loader.LoadItems(assembly).Single();
Microsoft.AspNetCore.Mvc.Razor.Test (21)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (21)
17var item1 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item1" && i.Type == typeof(TestView)); 18var item2 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item2" && i.Type == typeof(TestPage)); 38var item1 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item1" && i.Type == typeof(TestView)); 39var item2 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item2" && i.Type == typeof(TestPage)); 67var item1 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item" && i.Type == typeof(TestView)); 68var item2 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item" && i.Type == typeof(TestPage)); 91var item1 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item"); 92var item2 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "item"); 115var item1 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item1" && i.Type == typeof(TestView)); 116var item2 = Mock.Of<RazorCompiledItem>(i => i.Identifier == "Item2" && i.Type == typeof(TestPage) && i.Kind == "mvc.1.0.razor-page"); 155public IEnumerable<RazorCompiledItem> CompiledItems { get; set; }
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (1)
472private CompiledPageRouteModelProvider CreateProvider(IList<RazorCompiledItem> items, RazorPagesOptions options = null)
Infrastructure\DefaultPageLoaderTest.cs (1)
357var compiledItem = TestRazorCompiledItem.CreateForView(typeof(object), "/Views/Index.cshtml");
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestRazorCompiledItem.cs (4)
11public static RazorCompiledItem CreateForPage(string identifier, object[] metadata = null) 16public static RazorCompiledItem CreateForPage(Type type, string identifier, object[] metadata = null) 21public static RazorCompiledItem CreateForView(string identifier, object[] metadata = null) 26public static RazorCompiledItem CreateForView(Type type, string identifier, object[] metadata = null)
Microsoft.AspNetCore.Razor.Runtime (14)
Hosting\RazorCompiledItemExtensions.cs (3)
9/// Extension methods for <see cref="RazorCompiledItem"/>. 16/// <param name="item">The <see cref="RazorCompiledItem"/>.</param> 18public static IReadOnlyList<IRazorSourceChecksumMetadata> GetChecksumMetadata(this RazorCompiledItem item)
Hosting\RazorCompiledItemLoader.cs (10)
9/// A loader implementation that can load <see cref="RazorCompiledItem"/> objects from an 15/// <see cref="RazorCompiledItem"/> objects from an <see cref="Assembly"/>. The default implementations of methods 23/// Subclasses of <see cref="RazorCompiledItemLoader"/> can return subclasses of <see cref="RazorCompiledItem"/> 30/// Loads a list of <see cref="RazorCompiledItem"/> objects from the provided <see cref="Assembly"/>. 33/// <returns>A list of <see cref="RazorCompiledItem"/> objects.</returns> 34public virtual IReadOnlyList<RazorCompiledItem> LoadItems(Assembly assembly) 38var items = new List<RazorCompiledItem>(); 48/// Creates a <see cref="RazorCompiledItem"/> from a <see cref="RazorCompiledItemAttribute"/>. 51/// <returns>A <see cref="RazorCompiledItem"/> created from <paramref name="attribute"/>.</returns> 52protected virtual RazorCompiledItem CreateItem(RazorCompiledItemAttribute attribute)
Hosting\RazorSourceChecksumAttribute.cs (1)
16/// <see cref="RazorCompiledItemExtensions.GetChecksumMetadata(RazorCompiledItem)"/>.