3 types derived from RazorCompiledItem
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
73
private sealed class HotReloadRazorCompiledItem :
RazorCompiledItem
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
TestRazorCompiledItem.cs (1)
9
public class TestRazorCompiledItem :
RazorCompiledItem
Microsoft.AspNetCore.Razor.Runtime (1)
Hosting\DefaultRazorCompiledItem.cs (1)
6
internal sealed class DefaultRazorCompiledItem :
RazorCompiledItem
58 references to RazorCompiledItem
Microsoft.AspNetCore.Mvc.Razor (14)
ApplicationParts\CompiledRazorAssemblyPart.cs (1)
31
IEnumerable<
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.
16
IEnumerable<
RazorCompiledItem
> CompiledItems { get; }
ApplicationParts\RazorCompiledItemFeatureProvider.cs (4)
37
foreach (
var
item in provider.CompiledItems)
39
var
compiledItem = item;
75
private readonly
RazorCompiledItem
_previous;
76
public HotReloadRazorCompiledItem(
RazorCompiledItem
previous, Type type)
Compilation\CompiledViewDescriptor.cs (6)
24
/// <param name="item">The <see cref="
RazorCompiledItem
"/>.</param>
25
public CompiledViewDescriptor(
RazorCompiledItem
item)
38
/// <param name="item">The <see cref="
RazorCompiledItem
"/>.</param>
40
public CompiledViewDescriptor(
RazorCompiledItem
item, RazorViewAttribute attribute)
91
/// Gets the <see cref="
RazorCompiledItem
"/> descriptor for this view.
93
public
RazorCompiledItem
? Item { get; set; }
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
ChecksumValidator.cs (2)
14
public static bool IsRecompilationSupported(
RazorCompiledItem
item)
28
public static bool IsItemValid(RazorProjectFileSystem fileSystem,
RazorCompiledItem
item)
RuntimeViewCompiler.cs (1)
329
var
item = loader.LoadItems(assembly).Single();
Microsoft.AspNetCore.Mvc.Razor.Test (21)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (21)
17
var
item1 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item1" && i.Type == typeof(TestView));
18
var
item2 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item2" && i.Type == typeof(TestPage));
38
var
item1 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item1" && i.Type == typeof(TestView));
39
var
item2 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item2" && i.Type == typeof(TestPage));
67
var
item1 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item" && i.Type == typeof(TestView));
68
var
item2 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item" && i.Type == typeof(TestPage));
91
var
item1 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item");
92
var
item2 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "item");
115
var
item1 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item1" && i.Type == typeof(TestView));
116
var
item2 = Mock.Of<
RazorCompiledItem
>(i => i.Identifier == "Item2" && i.Type == typeof(TestPage) && i.Kind == "mvc.1.0.razor-page");
155
public IEnumerable<
RazorCompiledItem
> CompiledItems { get; set; }
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (1)
472
private CompiledPageRouteModelProvider CreateProvider(IList<
RazorCompiledItem
> items, RazorPagesOptions options = null)
Infrastructure\DefaultPageLoaderTest.cs (1)
357
var
compiledItem = TestRazorCompiledItem.CreateForView(typeof(object), "/Views/Index.cshtml");
Microsoft.AspNetCore.Mvc.Views.TestCommon (4)
TestRazorCompiledItem.cs (4)
11
public static
RazorCompiledItem
CreateForPage(string identifier, object[] metadata = null)
16
public static
RazorCompiledItem
CreateForPage(Type type, string identifier, object[] metadata = null)
21
public static
RazorCompiledItem
CreateForView(string identifier, object[] metadata = null)
26
public 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>
18
public 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>
34
public virtual IReadOnlyList<
RazorCompiledItem
> LoadItems(Assembly assembly)
38
var 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>
52
protected virtual
RazorCompiledItem
CreateItem(RazorCompiledItemAttribute attribute)
Hosting\RazorSourceChecksumAttribute.cs (1)
16
/// <see cref="RazorCompiledItemExtensions.GetChecksumMetadata(
RazorCompiledItem
)"/>.