1 type derived from RazorViewEngine
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorViewEngineTest.cs (1)
2152
private class TestableRazorViewEngine :
RazorViewEngine
57 references to RazorViewEngine
Microsoft.AspNetCore.Mvc.Razor (23)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
131
services.TryAddSingleton<IRazorViewEngine,
RazorViewEngine
>();
DependencyInjection\MvcRazorMvcViewOptionsSetup.cs (2)
11
/// Configures <see cref="MvcViewOptions"/> to use <see cref="
RazorViewEngine
"/>.
29
/// Configures <paramref name="options"/> to use <see cref="
RazorViewEngine
"/>.
IViewLocationExpander.cs (3)
7
/// Specifies the contracts for a view location expander that is used by <see cref="
RazorViewEngine
"/> instances to
25
/// Invoked by a <see cref="
RazorViewEngine
"/> to determine the values that would be consumed by this instance
34
/// Invoked by a <see cref="
RazorViewEngine
"/> to determine potential locations for a view.
RazorHotReload.cs (3)
15
private readonly
RazorViewEngine
? _razorViewEngine;
36
if (razorViewEngine.GetType() == typeof(
RazorViewEngine
))
38
_razorViewEngine = (
RazorViewEngine
)razorViewEngine;
RazorViewEngine.cs (2)
47
/// Initializes a new instance of the <see cref="
RazorViewEngine
" />.
76
_logger = loggerFactory.CreateLogger<
RazorViewEngine
>();
RazorViewEngineOptions.cs (6)
7
/// Provides programmatic configuration for the <see cref="
RazorViewEngine
"/>.
12
/// Gets a <see cref="IList{IViewLocationExpander}"/> used by the <see cref="
RazorViewEngine
"/>.
17
/// Gets the locations where <see cref="
RazorViewEngine
"/> will search for views.
42
/// Gets the locations where <see cref="
RazorViewEngine
"/> will search for views within an
72
/// Gets the locations where <see cref="
RazorViewEngine
"/> will search for views (such as layouts and partials)
103
/// Gets the locations where <see cref="
RazorViewEngine
"/> will search for views (such as layouts and partials)
RazorViewEngineOptionsSetup.cs (5)
14
options.ViewLocationFormats.Add("/Views/{1}/{0}" +
RazorViewEngine
.ViewExtension);
15
options.ViewLocationFormats.Add("/Views/Shared/{0}" +
RazorViewEngine
.ViewExtension);
17
options.AreaViewLocationFormats.Add("/Areas/{2}/Views/{1}/{0}" +
RazorViewEngine
.ViewExtension);
18
options.AreaViewLocationFormats.Add("/Areas/{2}/Views/Shared/{0}" +
RazorViewEngine
.ViewExtension);
19
options.AreaViewLocationFormats.Add("/Views/Shared/{0}" +
RazorViewEngine
.ViewExtension);
ViewLocationCacheKey.cs (1)
7
/// Key for entries in <see cref="
RazorViewEngine
.ViewLookupCache"/>.
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (4)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (4)
13
private static readonly string IndexFileName = "Index" +
RazorViewEngine
.ViewExtension;
118
var viewEnginePath = relativePath.Substring(pageNameIndex, relativePath.Length - pageNameIndex -
RazorViewEngine
.ViewExtension.Length);
130
Debug.Assert(path.EndsWith(
RazorViewEngine
.ViewExtension, StringComparison.OrdinalIgnoreCase));
132
var endIndex = path.Length -
RazorViewEngine
.ViewExtension.Length;
Microsoft.AspNetCore.Mvc.Razor.Test (18)
RazorHotReloadTest.cs (2)
38
var
viewEngine = Assert.IsType<
RazorViewEngine
>(serviceProvider.GetRequiredService<IRazorViewEngine>());
RazorViewEngineTest.cs (16)
71
var
viewEngine = CreateSuccessfulViewEngine();
86
var
viewEngine = CreateSuccessfulViewEngine();
103
var
viewEngine = CreateSuccessfulViewEngine();
119
var
viewEngine = CreateSuccessfulViewEngine();
226
var
viewEngine = CreateSuccessfulViewEngine();
241
var
viewEngine = CreateSuccessfulViewEngine();
1069
var
viewEngine = CreateSuccessfulViewEngine();
1084
var
viewEngine = CreateSuccessfulViewEngine();
1099
var
viewEngine = CreateSuccessfulViewEngine();
1113
var
viewEngine = CreateSuccessfulViewEngine();
1623
var result =
RazorViewEngine
.GetNormalizedRouteValue(actionContext, key);
1647
var result =
RazorViewEngine
.GetNormalizedRouteValue(actionContext, key);
1670
var result =
RazorViewEngine
.GetNormalizedRouteValue(actionContext, key);
1693
var result =
RazorViewEngine
.GetNormalizedRouteValue(actionContext, key);
1720
var result =
RazorViewEngine
.GetNormalizedRouteValue(actionContext, key);
2028
private
RazorViewEngine
CreateSuccessfulViewEngine()
Microsoft.AspNetCore.Mvc.RazorPages (11)
ApplicationModels\PageRouteModelFactory.cs (4)
13
private static readonly string IndexFileName = "Index" +
RazorViewEngine
.ViewExtension;
118
var viewEnginePath = relativePath.Substring(pageNameIndex, relativePath.Length - pageNameIndex -
RazorViewEngine
.ViewExtension.Length);
130
Debug.Assert(path.EndsWith(
RazorViewEngine
.ViewExtension, StringComparison.OrdinalIgnoreCase));
132
var endIndex = path.Length -
RazorViewEngine
.ViewExtension.Length;
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (7)
27
var defaultPageSearchPath = CombinePath(rootDirectory, "{1}/{0}" +
RazorViewEngine
.ViewExtension);
31
var pagesSharedDirectory = CombinePath(rootDirectory, "Shared/{0}" +
RazorViewEngine
.ViewExtension);
34
options.PageViewLocationFormats.Add("/Views/Shared/{0}" +
RazorViewEngine
.ViewExtension);
45
var areaSearchPath = CombinePath(areaPagesDirectory, "{1}/{0}" +
RazorViewEngine
.ViewExtension);
48
var areaPagesSharedSearchPath = CombinePath(areaPagesDirectory, "Shared/{0}" +
RazorViewEngine
.ViewExtension);
51
var areaViewsSharedSearchPath = CombinePath(areaDirectory, "Views/Shared/{0}" +
RazorViewEngine
.ViewExtension);
55
options.AreaPageViewLocationFormats.Add("/Views/Shared/{0}" +
RazorViewEngine
.ViewExtension);
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
36
Assert.IsType<
RazorViewEngine
>(viewEngine);