4 instantiations of RazorViewEngineOptions
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
CSharpCompilerTest.cs (2)
57
var options = new
RazorViewEngineOptions
();
75
var options = new
RazorViewEngineOptions
();
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorViewEngineTest.cs (1)
2068
var options = new
RazorViewEngineOptions
();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
DependencyInjection\RazorPagesRazorViewEngineOptionsSetupTest.cs (1)
186
var options = new
RazorViewEngineOptions
();
38 references to RazorViewEngineOptions
Microsoft.AspNetCore.Mvc.Localization (1)
MvcLocalizationServices.cs (1)
35
services.Configure<
RazorViewEngineOptions
>(
Microsoft.AspNetCore.Mvc.Localization.Test (2)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
65
sd => sd.ServiceType == typeof(IConfigureOptions<
RazorViewEngineOptions
>));
MvcLocalizationMvcCoreBuilderExtensionsTest.cs (1)
65
sd => sd.ServiceType == typeof(IConfigureOptions<
RazorViewEngineOptions
>));
Microsoft.AspNetCore.Mvc.Razor (14)
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (3)
16
/// Configures a set of <see cref="
RazorViewEngineOptions
"/> for the application.
19
/// <param name="setupAction">An action to configure the <see cref="
RazorViewEngineOptions
"/>.</param>
23
Action<
RazorViewEngineOptions
> setupAction)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (3)
45
/// <param name="setupAction">A setup action that configures the <see cref="
RazorViewEngineOptions
"/>.</param>
49
Action<
RazorViewEngineOptions
> setupAction)
129
ServiceDescriptor.Transient<IConfigureOptions<
RazorViewEngineOptions
>, RazorViewEngineOptionsSetup>());
RazorViewEngine.cs (6)
22
/// <see cref="
RazorViewEngineOptions
.ViewLocationFormats"/>
24
/// <see cref="
RazorViewEngineOptions
.AreaViewLocationFormats"/>.
43
private readonly
RazorViewEngineOptions
_options;
53
IOptions<
RazorViewEngineOptions
> optionsAccessor,
62
Resources.FormatViewLocationFormatsIsRequired(nameof(
RazorViewEngineOptions
.ViewLocationFormats)),
69
Resources.FormatViewLocationFormatsIsRequired(nameof(
RazorViewEngineOptions
.AreaViewLocationFormats)),
RazorViewEngineOptionsSetup.cs (2)
8
internal sealed class RazorViewEngineOptionsSetup : IConfigureOptions<
RazorViewEngineOptions
>
10
public void Configure(
RazorViewEngineOptions
options)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
CSharpCompilerTest.cs (2)
57
var
options = new RazorViewEngineOptions();
75
var
options = new RazorViewEngineOptions();
Microsoft.AspNetCore.Mvc.Razor.Test (6)
RazorViewEngineOptionsTest.cs (2)
34
var accessor = serviceProvider.GetRequiredService<IOptions<
RazorViewEngineOptions
>>();
64
var accessor = serviceProvider.GetRequiredService<IOptions<
RazorViewEngineOptions
>>();
RazorViewEngineTest.cs (4)
2060
private static IOptions<
RazorViewEngineOptions
> GetOptionsAccessor(
2068
var
options = new RazorViewEngineOptions();
2111
var optionsAccessor = new Mock<IOptions<
RazorViewEngineOptions
>>();
2156
IOptions<
RazorViewEngineOptions
> optionsAccessor)
Microsoft.AspNetCore.Mvc.RazorPages (3)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (1)
83
ServiceDescriptor.Transient<IConfigureOptions<
RazorViewEngineOptions
>, RazorPagesRazorViewEngineOptionsSetup>());
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (2)
12
internal sealed class RazorPagesRazorViewEngineOptionsSetup : IConfigureOptions<
RazorViewEngineOptions
>
21
public void Configure(
RazorViewEngineOptions
options)
Microsoft.AspNetCore.Mvc.RazorPages.Test (9)
DependencyInjection\RazorPagesRazorViewEngineOptionsSetupTest.cs (9)
27
var
viewEngineOptions = GetViewEngineOptions();
50
var
viewEngineOptions = GetViewEngineOptions();
75
var
viewEngineOptions = GetViewEngineOptions();
103
var
viewEngineOptions = GetViewEngineOptions();
129
var
viewEngineOptions = GetViewEngineOptions();
156
var
viewEngineOptions = GetViewEngineOptions();
171
var
viewEngineOptions = GetViewEngineOptions();
183
private static
RazorViewEngineOptions
GetViewEngineOptions()
186
var
options = new RazorViewEngineOptions();
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
511
typeof(IConfigureOptions<
RazorViewEngineOptions
>),