5 instantiations of RazorCompiledItemAttribute
Microsoft.AspNetCore.Mvc.Razor.Test (2)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (2)
43
new
RazorCompiledItemAttribute
(typeof(TestView), "mvc.1.0.razor-page", "Item1"),
44
new
RazorCompiledItemAttribute
(typeof(TestView), "mvc.1.0.razor-view", "Item1"),
RazorBuildWebSite.Views (3)
Pages\Rzc\Page.cs (1)
4
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.
RazorCompiledItemAttribute
(typeof(RazorBuildWebSite.Pages.Rzc.Pages_Rzc_Page), @"mvc.1.0.razor-page", @"/Pages/Rzc/Page.cshtml")]
Views\Common\CommonView.cs (1)
4
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.
RazorCompiledItemAttribute
(typeof(RazorBuildWebSite.Views.Rzc.Views_Rzc_View), @"mvc.1.0.view", @"/Views/Common/CommonView.cshtml")]
Views\Rzc\View.cs (1)
4
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.
RazorCompiledItemAttribute
(typeof(RazorBuildWebSite.Views.Rzc.Views_Rzc_View), @"mvc.1.0.view", @"/Views/Rzc/View.cshtml")]
11 references to RazorCompiledItemAttribute
Microsoft.AspNetCore.Razor.Runtime (11)
Hosting\RazorCompiledItemAttribute.cs (2)
13
/// Creates a new <see cref="
RazorCompiledItemAttribute
"/>.
47
/// with this instance of <see cref="
RazorCompiledItemAttribute
"/>.
Hosting\RazorCompiledItemLoader.cs (9)
24
/// with additional data members by overriding <see cref="CreateItem(
RazorCompiledItemAttribute
)"/>.
39
foreach (
var
attribute in LoadAttributes(assembly))
48
/// Creates a <see cref="RazorCompiledItem"/> from a <see cref="
RazorCompiledItemAttribute
"/>.
50
/// <param name="attribute">The <see cref="
RazorCompiledItemAttribute
"/>.</param>
52
protected virtual RazorCompiledItem CreateItem(
RazorCompiledItemAttribute
attribute)
60
/// Retrieves the list of <see cref="
RazorCompiledItemAttribute
"/> attributes defined for the provided
64
/// <returns>A list of <see cref="
RazorCompiledItemAttribute
"/> attributes.</returns>
65
protected IEnumerable<
RazorCompiledItemAttribute
> LoadAttributes(Assembly assembly)
69
return assembly.GetCustomAttributes<
RazorCompiledItemAttribute
>();