24 instantiations of RazorPagesOptions
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
ApplicationModels\AuthorizationPageApplicationModelProviderTest.cs (1)
192
Options.Create(new
RazorPagesOptions
()),
ApplicationModels\CompiledPageRouteModelProviderTest.cs (4)
85
var options = new
RazorPagesOptions
174
var options = new
RazorPagesOptions
237
var options = new
RazorPagesOptions
{ RootDirectory = "/" };
474
options = options ?? new
RazorPagesOptions
();
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (1)
1223
Options.Create(new
RazorPagesOptions
()),
ApplicationModels\PageRouteModelFactoryTest.cs (8)
16
var options = new
RazorPagesOptions
();
45
var options = new
RazorPagesOptions
();
74
var options = new
RazorPagesOptions
();
102
var options = new
RazorPagesOptions
();
136
var options = new
RazorPagesOptions
();
172
var options = new
RazorPagesOptions
();
189
var options = new
RazorPagesOptions
();
208
var options = new
RazorPagesOptions
();
ApplicationModels\ResponseCacheFilterApplicationModelProviderTest.cs (1)
146
Options.Create(new
RazorPagesOptions
()),
DependencyInjection\RazorPagesRazorViewEngineOptionsSetupTest.cs (7)
23
var razorPagesOptions = new
RazorPagesOptions
49
var razorPagesOptions = new
RazorPagesOptions
();
74
var razorPagesOptions = new
RazorPagesOptions
();
99
var razorPagesOptions = new
RazorPagesOptions
125
var razorPagesOptions = new
RazorPagesOptions
152
var razorPagesOptions = new
RazorPagesOptions
172
var setup = new RazorPagesRazorViewEngineOptionsSetup(Options.Options.Create(new
RazorPagesOptions
()));
Infrastructure\DefaultPageLoaderTest.cs (1)
20
private readonly IOptions<RazorPagesOptions> RazorPagesOptions = Options.Create(new
RazorPagesOptions
{ Conventions = new PageConventionCollection(Mock.Of<IServiceProvider>()) });
Infrastructure\PageActionDescriptorProviderTest.cs (1)
371
return Options.Create(new
RazorPagesOptions
{ Conventions = new PageConventionCollection(Mock.Of<IServiceProvider>()) });
56 references to RazorPagesOptions
Microsoft.AspNetCore.Identity.UI (2)
IdentityDefaultUIConfigureOptions.cs (2)
14
IPostConfigureOptions<
RazorPagesOptions
>,
27
public void PostConfigure(string? name,
RazorPagesOptions
options)
Microsoft.AspNetCore.Mvc (1)
MvcServiceCollectionExtensions.cs (1)
288
public static IMvcBuilder AddRazorPages(this IServiceCollection services, Action<
RazorPagesOptions
>? configure)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (5)
PageActionDescriptorChangeProvider.cs (1)
23
IOptions<
RazorPagesOptions
> razorPagesOptions)
RazorProjectPageRouteModelProvider.cs (2)
17
private readonly
RazorPagesOptions
_pagesOptions;
23
IOptions<
RazorPagesOptions
> pagesOptionsAccessor,
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (2)
14
private readonly
RazorPagesOptions
_options;
20
RazorPagesOptions
options,
Microsoft.AspNetCore.Mvc.RazorPages (25)
ApplicationModels\CompiledPageRouteModelProvider.cs (2)
21
private readonly
RazorPagesOptions
_pagesOptions;
26
IOptions<
RazorPagesOptions
> pagesOptionsAccessor,
ApplicationModels\DefaultPageApplicationModelProvider.cs (2)
22
private readonly
RazorPagesOptions
_razorPagesOptions;
28
IOptions<
RazorPagesOptions
> razorPagesOptions,
ApplicationModels\PageRouteModelFactory.cs (2)
14
private readonly
RazorPagesOptions
_options;
20
RazorPagesOptions
options,
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (5)
16
/// Configures a set of <see cref="
RazorPagesOptions
"/> for the application.
19
/// <param name="setupAction">An action to configure the <see cref="
RazorPagesOptions
"/>.</param>
23
Action<
RazorPagesOptions
> setupAction)
48
builder.Services.Configure<
RazorPagesOptions
>(options => options.RootDirectory = rootDirectory);
61
builder.Services.Configure<
RazorPagesOptions
>(options => options.RootDirectory = "/");
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (4)
45
/// <param name="setupAction">The action to setup the <see cref="
RazorPagesOptions
"/>.</param>
49
Action<
RazorPagesOptions
> setupAction)
74
builder.Services.Configure<
RazorPagesOptions
>(options => options.RootDirectory = rootDirectory);
86
ServiceDescriptor.Transient<IConfigureOptions<
RazorPagesOptions
>, RazorPagesOptionsSetup>());
DependencyInjection\RazorPagesOptionsSetup.cs (2)
10
internal sealed class RazorPagesOptionsSetup : IConfigureOptions<
RazorPagesOptions
>
19
public void Configure(
RazorPagesOptions
options)
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (2)
14
private readonly
RazorPagesOptions
_pagesOptions;
16
public RazorPagesRazorViewEngineOptionsSetup(IOptions<
RazorPagesOptions
> pagesOptions)
Infrastructure\CompiledPageActionDescriptorFactory.cs (1)
26
RazorPagesOptions
pageOptions)
Infrastructure\CompiledPageActionDescriptorProvider.cs (2)
31
/// <param name="pageOptions">Accessor to <see cref="
RazorPagesOptions
"/>.</param>
37
IOptions<
RazorPagesOptions
> pageOptions)
Infrastructure\DefaultPageLoader.cs (1)
24
IOptions<
RazorPagesOptions
> pageOptions,
Infrastructure\PageActionDescriptorProvider.cs (2)
27
/// <param name="pagesOptionsAccessor">The <see cref="
RazorPagesOptions
"/>.</param>
31
IOptions<
RazorPagesOptions
> pagesOptionsAccessor)
Microsoft.AspNetCore.Mvc.RazorPages.Test (23)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (5)
85
var
options = new RazorPagesOptions
174
var
options = new RazorPagesOptions
237
var
options = new RazorPagesOptions { RootDirectory = "/" };
472
private CompiledPageRouteModelProvider CreateProvider(IList<RazorCompiledItem> items,
RazorPagesOptions
options = null)
493
IOptions<
RazorPagesOptions
> options,
ApplicationModels\PageRouteModelFactoryTest.cs (8)
16
var
options = new RazorPagesOptions();
45
var
options = new RazorPagesOptions();
74
var
options = new RazorPagesOptions();
102
var
options = new RazorPagesOptions();
136
var
options = new RazorPagesOptions();
172
var
options = new RazorPagesOptions();
189
var
options = new RazorPagesOptions();
208
var
options = new RazorPagesOptions();
DependencyInjection\MvcRazorPagesMvcBuilderExtensionsTest.cs (2)
19
.AddSingleton<IConfigureOptions<
RazorPagesOptions
>, RazorPagesOptionsSetup>();
29
var accessor = serviceProvider.GetRequiredService<IOptions<
RazorPagesOptions
>>();
DependencyInjection\RazorPagesRazorViewEngineOptionsSetupTest.cs (6)
23
var
razorPagesOptions = new RazorPagesOptions
49
var
razorPagesOptions = new RazorPagesOptions();
74
var
razorPagesOptions = new RazorPagesOptions();
99
var
razorPagesOptions = new RazorPagesOptions
125
var
razorPagesOptions = new RazorPagesOptions
152
var
razorPagesOptions = new RazorPagesOptions
Infrastructure\DefaultPageLoaderTest.cs (1)
20
private readonly IOptions<
RazorPagesOptions
> RazorPagesOptions = Options.Create(new RazorPagesOptions { Conventions = new PageConventionCollection(Mock.Of<IServiceProvider>()) });
Infrastructure\PageActionDescriptorProviderTest.cs (1)
369
private static IOptions<
RazorPagesOptions
> GetRazorPagesOptions()