30 instantiations of MvcViewOptions
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionInvokerProviderTest.cs (1)
530
Options.Create(new
MvcViewOptions
()),
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
TestableHtmlGenerator.cs (1)
124
.Returns(new
MvcViewOptions
());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (27)
DefaultHtmlGeneratorTest.cs (3)
364
var htmlGenerator = GetGenerator(metadataProvider,
new
() { HtmlHelperOptions = htmlHelperOptions });
394
var htmlGenerator = GetGenerator(metadataProvider,
new
() { HtmlHelperOptions = htmlHelperOptions });
1005
mvcViewOptionsAccessor.SetupGet(accessor => accessor.Value).Returns(options ?? new
MvcViewOptions
());
DefaultValidationHtmlAttributeProviderTest.cs (1)
271
var mvcViewOptions = new
MvcViewOptions
();
PartialViewResultExecutorTest.cs (1)
358
var options = Options.Create(new
MvcViewOptions
());
PartialViewResultTest.cs (1)
233
var options = Options.Create(new
MvcViewOptions
());
Rendering\DefaultTemplatesUtilities.cs (1)
231
var options = new
MvcViewOptions
();
ViewComponentResultTest.cs (1)
664
services.AddSingleton(Options.Create(new
MvcViewOptions
()));
ViewEngines\CompositeViewEngineTest.cs (16)
20
var optionsAccessor = Options.Create(new
MvcViewOptions
());
40
var optionsAccessor = Options.Create(new
MvcViewOptions
());
58
var optionsAccessor = Options.Create(new
MvcViewOptions
());
80
var optionsAccessor = Options.Create(new
MvcViewOptions
());
112
var optionsAccessor = Options.Create(new
MvcViewOptions
());
145
var optionsAccessor = Options.Create(new
MvcViewOptions
());
168
var optionsAccessor = Options.Create(new
MvcViewOptions
());
190
var optionsAccessor = Options.Create(new
MvcViewOptions
());
215
var optionsAccessor = Options.Create(new
MvcViewOptions
());
250
var optionsAccessor = Options.Create(new
MvcViewOptions
());
286
var optionsAccessor = Options.Create(new
MvcViewOptions
());
307
var optionsAccessor = Options.Create(new
MvcViewOptions
());
325
var optionsAccessor = Options.Create(new
MvcViewOptions
());
347
var optionsAccessor = Options.Create(new
MvcViewOptions
());
379
var optionsAccessor = Options.Create(new
MvcViewOptions
());
412
var optionsAccessor = Options.Create(new
MvcViewOptions
());
ViewExecutorTest.cs (1)
398
Options.Create(new
MvcViewOptions
()),
ViewResultExecutorTest.cs (1)
348
var options = Options.Create(new
MvcViewOptions
());
ViewResultTest.cs (1)
245
var options = Options.Create(new
MvcViewOptions
());
Microsoft.AspNetCore.Mvc.Views.TestCommon (1)
HtmlGeneratorUtilities.cs (1)
18
var options = new
MvcViewOptions
();
60 references to MvcViewOptions
Microsoft.AspNetCore.Mvc.Razor (5)
DependencyInjection\MvcRazorMvcCoreBuilderExtensions.cs (1)
126
ServiceDescriptor.Transient<IConfigureOptions<
MvcViewOptions
>, MvcRazorMvcViewOptionsSetup>());
DependencyInjection\MvcRazorMvcViewOptionsSetup.cs (4)
11
/// Configures <see cref="
MvcViewOptions
"/> to use <see cref="RazorViewEngine"/>.
13
internal sealed class MvcRazorMvcViewOptionsSetup : IConfigureOptions<
MvcViewOptions
>
31
/// <param name="options">The <see cref="
MvcViewOptions
"/> to configure.</param>
32
public void Configure(
MvcViewOptions
options)
Microsoft.AspNetCore.Mvc.RazorPages (5)
Infrastructure\PageActionInvokerProvider.cs (2)
23
private readonly
MvcViewOptions
_mvcViewOptions;
36
IOptions<
MvcViewOptions
> mvcViewOptions,
Infrastructure\PageRequestDelegateFactory.cs (3)
24
private readonly
MvcViewOptions
_mvcViewOptions;
37
IOptions<
MvcViewOptions
> mvcViewOptions,
51
IOptions<
MvcViewOptions
> mvcViewOptions,
Microsoft.AspNetCore.Mvc.TagHelpers.Test (3)
TestableHtmlGenerator.cs (3)
41
IOptions<
MvcViewOptions
> options,
119
private static IOptions<
MvcViewOptions
> GetOptions()
121
var mockOptions = new Mock<IOptions<
MvcViewOptions
>>();
Microsoft.AspNetCore.Mvc.Test (5)
MvcOptionsSetupTest.cs (4)
32
var
options = GetOptions<
MvcViewOptions
>(AddViewEngineOptionsServices);
137
var
options = GetOptions<
MvcViewOptions
>(AddViewEngineOptionsServices);
MvcServiceCollectionExtensionsTest.cs (1)
503
typeof(IConfigureOptions<
MvcViewOptions
>),
Microsoft.AspNetCore.Mvc.ViewFeatures (27)
DefaultHtmlGenerator.cs (2)
50
/// <param name="optionsAccessor">The accessor for <see cref="
MvcViewOptions
"/>.</param>
57
IOptions<
MvcViewOptions
> optionsAccessor,
DefaultValidationHtmlAttributeProvider.cs (2)
23
/// <param name="optionsAccessor">The accessor for <see cref="
MvcViewOptions
"/>.</param>
28
IOptions<
MvcViewOptions
> optionsAccessor,
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (3)
18
/// Adds configuration of <see cref="
MvcViewOptions
"/> for the application.
22
/// An <see cref="Action{MvcViewOptions}"/> to configure the provided <see cref="
MvcViewOptions
"/>.
27
Action<
MvcViewOptions
> setupAction)
DependencyInjection\MvcViewFeaturesMvcCoreBuilderExtensions.cs (5)
74
/// <param name="setupAction">The setup action for <see cref="
MvcViewOptions
"/>.</param>
78
Action<
MvcViewOptions
> setupAction)
113
/// Configures <see cref="
MvcViewOptions
"/>.
120
Action<
MvcViewOptions
> setupAction)
137
ServiceDescriptor.Transient<IConfigureOptions<
MvcViewOptions
>, MvcViewOptionsSetup>());
DependencyInjection\MvcViewOptionsSetup.cs (3)
12
/// Sets up default options for <see cref="
MvcViewOptions
"/>.
14
internal sealed class MvcViewOptionsSetup : IConfigureOptions<
MvcViewOptions
>
42
public void Configure(
MvcViewOptions
options)
PartialViewResultExecutor.cs (1)
36
IOptions<
MvcViewOptions
> viewOptions,
ViewComponentResultExecutor.cs (1)
45
IOptions<
MvcViewOptions
> mvcHelperOptions,
ViewEngines\CompositeViewEngine.cs (6)
18
/// <param name="optionsAccessor">The options accessor for <see cref="
MvcViewOptions
"/>.</param>
19
public CompositeViewEngine(IOptions<
MvcViewOptions
> optionsAccessor)
36
typeof(
MvcViewOptions
).FullName,
37
nameof(
MvcViewOptions
.ViewEngines),
85
typeof(
MvcViewOptions
).FullName,
86
nameof(
MvcViewOptions
.ViewEngines),
ViewExecutor.cs (3)
39
IOptions<
MvcViewOptions
> viewOptions,
92
/// Gets the <see cref="
MvcViewOptions
"/>.
94
protected
MvcViewOptions
? ViewOptions { get; }
ViewResultExecutor.cs (1)
36
IOptions<
MvcViewOptions
> viewOptions,
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (11)
DefaultHtmlGeneratorTest.cs (2)
1002
private static IHtmlGenerator GetGenerator(IModelMetadataProvider metadataProvider,
MvcViewOptions
options = default)
1004
var mvcViewOptionsAccessor = new Mock<IOptions<
MvcViewOptions
>>();
DefaultValidationHtmlAttributeProviderTest.cs (2)
271
var
mvcViewOptions = new MvcViewOptions();
274
var mvcViewOptionsAccessor = new Mock<IOptions<
MvcViewOptions
>>();
Rendering\DefaultTemplatesUtilities.cs (1)
231
var
options = new MvcViewOptions();
ViewEngines\CompositeViewEngineTest.cs (6)
36
var expected = $"'{typeof(
MvcViewOptions
).FullName}.{nameof(
MvcViewOptions
.ViewEngines)}' must not be " +
165
var expected = $"'{typeof(
MvcViewOptions
).FullName}.{nameof(
MvcViewOptions
.ViewEngines)}' must not be " +
304
var expected = $"'{typeof(
MvcViewOptions
).FullName}.{nameof(
MvcViewOptions
.ViewEngines)}' must not be " +
Microsoft.AspNetCore.Mvc.Views.TestCommon (3)
HtmlGeneratorUtilities.cs (3)
18
var
options = new MvcViewOptions();
27
public static IHtmlGenerator GetHtmlGenerator(IModelMetadataProvider provider, IUrlHelperFactory urlHelperFactory,
MvcViewOptions
options)
29
var optionsAccessor = new Mock<IOptions<
MvcViewOptions
>>();
RazorPagesWebSite (1)
StartupWithClientValidationDisabled.cs (1)
21
services.Configure<
MvcViewOptions
>(o => o.HtmlHelperOptions.ClientValidationEnabled = false);