46 instantiations of RouteOptions
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (4)
DefaultApiDescriptionProviderTest.cs (2)
478var routeOptions = new RouteOptions { LowercaseUrls = true }; 2251Options.Create(routeOptions ?? new RouteOptions()));
EndpointMetadataApiDescriptionProviderTest.cs (2)
1373new DefaultParameterPolicyFactory(Options.Create(new RouteOptions()), new TestServiceProvider()), 1569new DefaultParameterPolicyFactory(Options.Create(new RouteOptions()), new TestServiceProvider()),
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\AttributeRoutingTest.cs (1)
169.Returns(new RouteOptions());
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
71var routeOptions = new RouteOptions(); 150var options = new RouteOptions();
Microsoft.AspNetCore.Routing.Microbenchmarks (5)
EndpointRoutingShortCircuitBenchmark.cs (2)
35Options.Create(new RouteOptions()), 47Options.Create(new RouteOptions()),
Matching\MatcherBuilderMultipleEntryBenchmark.cs (1)
57_parameterPolicyFactory = new DefaultParameterPolicyFactory(Options.Create(new RouteOptions()), new TestServiceProvider());
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
19var routeOptions = new RouteOptions();
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
31var routeOptions = new RouteOptions();
Microsoft.AspNetCore.Routing.Tests (34)
DefaultInlineConstraintResolverTest.cs (8)
18var routeOptions = new RouteOptions(); 259var routeOptions = new RouteOptions(); 274var routeOptions = new RouteOptions(); 289var routeOptions = new RouteOptions(); 299var routeOptions = new RouteOptions(); 314var routeOptions = new RouteOptions(); 329var routeOptions = new RouteOptions(); 348var routeOptions = new RouteOptions();
DefaultParameterPolicyFactoryTest.cs (12)
35var options = new RouteOptions(); 195var options = new RouteOptions(); 214var options = new RouteOptions(); 235var options = new RouteOptions(); 258var options = new RouteOptions(); 279var options = new RouteOptions(); 300var options = new RouteOptions(); 322var options = new RouteOptions(); 343var options = new RouteOptions(); 364var options = new RouteOptions(); 384var options = new RouteOptions(); 405options = new RouteOptions();
EndpointMiddlewareTest.cs (4)
16private readonly IOptions<RouteOptions> RouteOptions = Options.Create(new RouteOptions()); 205var routeOptions = Options.Create(new RouteOptions { SuppressCheckForUnhandledSecurityMetadata = true }); 302var routeOptions = Options.Create(new RouteOptions { SuppressCheckForUnhandledSecurityMetadata = true }); 400var routeOptions = Options.Create(new RouteOptions { SuppressCheckForUnhandledSecurityMetadata = true });
EndpointRoutingMiddlewareFormOptionsTest.cs (1)
222Options.Create(new RouteOptions()),
EndpointRoutingMiddlewareTest.cs (1)
482Options.Create(new RouteOptions()),
Matching\DfaMatcherBuilderTest.cs (1)
3544Options.Create(new RouteOptions
Matching\RouteMatcherBuilder.cs (1)
19var routeOptions = new RouteOptions();
Matching\TreeRouterMatcherBuilder.cs (1)
31var routeOptions = new RouteOptions();
RouteCollectionTest.cs (1)
653options = new RouteOptions();
RouteConstraintBuilderTest.cs (1)
182.Returns(new RouteOptions());
RouteTest.cs (1)
1850var routeOptions = new RouteOptions();
RoutingMetricsTests.cs (1)
169Options.Create(new RouteOptions()),
Tree\TreeRouterTest.cs (1)
2060var options = new RouteOptions();
127 references to RouteOptions
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (3)
30private readonly RouteOptions _routeOptions; 42/// <param name="routeOptions">The accessor for <see cref="RouteOptions"/>.</param> 49IOptions<RouteOptions> routeOptions)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
DefaultApiDescriptionProviderTest.cs (2)
478var routeOptions = new RouteOptions { LowercaseUrls = true }; 2223RouteOptions routeOptions = null)
Microsoft.AspNetCore.Mvc.Core (6)
DependencyInjection\MvcCoreRouteOptionsSetup.cs (5)
11/// Sets up MVC default options for <see cref="RouteOptions"/>. 13internal sealed class MvcCoreRouteOptionsSetup : IConfigureOptions<RouteOptions> 16/// Configures the <see cref="RouteOptions"/>. 18/// <param name="options">The <see cref="RouteOptions"/>.</param> 19public void Configure(RouteOptions options)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
141ServiceDescriptor.Transient<IConfigureOptions<RouteOptions>, MvcCoreRouteOptionsSetup>());
Microsoft.AspNetCore.Mvc.Core.Test (6)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
271services.Configure<RouteOptions>(routeOptionsSetup.Configure);
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
249typeof(IConfigureOptions<RouteOptions>),
Routing\ActionEndpointDataSourceBaseTest.cs (1)
141services.Configure<RouteOptions>(routeOptionsSetup.Configure);
Routing\ActionEndpointFactoryTest.cs (1)
22serviceCollection.Configure<RouteOptions>(routeOptionsSetup.Configure);
Routing\AttributeRoutingTest.cs (1)
166var routeOptions = new Mock<IOptions<RouteOptions>>();
Routing\KnownRouteValueConstraintTests.cs (1)
34services.Configure<RouteOptions>(routeOptionsSetup.Configure);
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
141services.Configure<RouteOptions>(routeOptionsSetup.Configure);
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
487typeof(IConfigureOptions<RouteOptions>),
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
PageRemoteAttributeTest.cs (1)
193provider => new DefaultInlineConstraintResolver(provider.GetRequiredService<IOptions<RouteOptions>>(), provider));
RemoteAttributeTest.cs (1)
494provider => new DefaultInlineConstraintResolver(provider.GetRequiredService<IOptions<RouteOptions>>(), provider));
Microsoft.AspNetCore.OpenApi.Tests (2)
Services\OpenApiDocumentServiceTestsBase.cs (2)
71var routeOptions = new RouteOptions(); 150var options = new RouteOptions();
Microsoft.AspNetCore.Routing (23)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (1)
104var routeOptions = builder.ApplicationServices.GetRequiredService<IOptions<RouteOptions>>();
ConfigureRouteOptions.cs (2)
9internal sealed class ConfigureRouteOptions : IConfigureOptions<RouteOptions> 20public void Configure(RouteOptions options)
DefaultInlineConstraintResolver.cs (2)
28/// <param name="routeOptions">Accessor for <see cref="RouteOptions"/> containing the constraints of interest.</param> 31public DefaultInlineConstraintResolver(IOptions<RouteOptions> routeOptions, IServiceProvider serviceProvider)
DefaultLinkGenerator.cs (1)
41IOptions<RouteOptions> routeOptions,
DefaultParameterPolicyFactory.cs (4)
12private readonly RouteOptions _options; 16IOptions<RouteOptions> options, 49typeof(RouteOptions), 50nameof(RouteOptions.ConstraintMap)));
DependencyInjection\RoutingServiceCollectionExtensions.cs (3)
31services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<RouteOptions>, RegexInlineRouteConstraintSetup>()); 71services.TryAddEnumerable(ServiceDescriptor.Transient<IConfigureOptions<RouteOptions>, ConfigureRouteOptions>( 131Action<RouteOptions> configureOptions)
EndpointMiddleware.cs (2)
21private readonly RouteOptions _routeOptions; 26IOptions<RouteOptions> routeOptions)
EndpointRoutingMiddleware.cs (2)
31private readonly RouteOptions _routeOptions; 40IOptions<RouteOptions> routeOptions,
RegexInlineRouteConstraintSetup.cs (2)
10internal sealed class RegexInlineRouteConstraintSetup : IConfigureOptions<RouteOptions> 12public void Configure(RouteOptions options)
RouteCollection.cs (2)
24private RouteOptions? _options; 195_options = context.RequestServices.GetRequiredService<IOptions<RouteOptions>>().Value;
RouteConstraintBuilder.cs (1)
129/// based on <paramref name="constraintText"/>. See <see cref="RouteOptions.ConstraintMap"/> to register
RouteOptions.cs (1)
83[RequiresUnreferencedCode($"The linker cannot determine what constraints are being added via the ConstraintMap property. Prefer {nameof(RouteOptions)}.{nameof(SetParameterPolicy)} instead for setting constraints. This warning can be suppressed if this property is being used to read or delete constraints.")]
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
19var routeOptions = new RouteOptions();
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
31var routeOptions = new RouteOptions();
Microsoft.AspNetCore.Routing.Tests (71)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (1)
323var routeOptions = app.ApplicationServices.GetRequiredService<IOptions<RouteOptions>>();
DefaultInlineConstraintResolverTest.cs (10)
18var routeOptions = new RouteOptions(); 259var routeOptions = new RouteOptions(); 274var routeOptions = new RouteOptions(); 289var routeOptions = new RouteOptions(); 299var routeOptions = new RouteOptions(); 314var routeOptions = new RouteOptions(); 329var routeOptions = new RouteOptions(); 348var routeOptions = new RouteOptions(); 366private IInlineConstraintResolver GetInlineConstraintResolver(RouteOptions routeOptions) 368var optionsAccessor = new Mock<IOptions<RouteOptions>>();
DefaultLinkGeneratorProcessTemplateTest.cs (11)
262s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 291s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 347s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 380s.Configure<RouteOptions>(o => 414s.Configure<RouteOptions>(o => o.AppendTrailingSlash = true); 444s.Configure<RouteOptions>(o => 479s.Configure<RouteOptions>(o => o.LowercaseUrls = true); 512s.Configure<RouteOptions>(o => o.LowercaseUrls = false); 545s.Configure<RouteOptions>(o => 583s.Configure<RouteOptions>(o => 621s.Configure<RouteOptions>(o => o.AppendTrailingSlash = false);
DefaultLinkGeneratorTest.cs (4)
177s.Configure<RouteOptions>(o => 203s.Configure<RouteOptions>(o => 315s.Configure<RouteOptions>(o => 341s.Configure<RouteOptions>(o =>
DefaultParameterPolicyFactoryTest.cs (14)
27$"Register the constraint type with '{typeof(RouteOptions)}.{nameof(RouteOptions.ConstraintMap)}'.", 35var options = new RouteOptions(); 195var options = new RouteOptions(); 214var options = new RouteOptions(); 235var options = new RouteOptions(); 258var options = new RouteOptions(); 279var options = new RouteOptions(); 300var options = new RouteOptions(); 322var options = new RouteOptions(); 343var options = new RouteOptions(); 364var options = new RouteOptions(); 384var options = new RouteOptions(); 400RouteOptions options = null,
EndpointMiddlewareTest.cs (1)
16private readonly IOptions<RouteOptions> RouteOptions = Options.Create(new RouteOptions());
InlineRouteParameterParserTests.cs (2)
960services.Configure<RouteOptions>(options => 965var accessor = serviceProvider.GetRequiredService<IOptions<RouteOptions>>();
LinkGeneratorTestBase.cs (2)
59services.Configure<RouteOptions>(o => 71var routeOptions = serviceProvider.GetRequiredService<IOptions<RouteOptions>>();
LinkParserTestBase.cs (2)
51services.Configure<RouteOptions>(o => 63var routeOptions = serviceProvider.GetRequiredService<IOptions<RouteOptions>>();
Matching\RouteMatcherBuilder.cs (1)
19var routeOptions = new RouteOptions();
Matching\TreeRouterMatcherBuilder.cs (1)
31var routeOptions = new RouteOptions();
RouteCollectionTest.cs (7)
591Action<RouteOptions> options = null) 617Action<RouteOptions> options = null, 626services.Configure<RouteOptions>(options); 644RouteOptions options = null) 659var optionsAccessor = new Mock<IOptions<RouteOptions>>(MockBehavior.Strict); 665context.Setup(m => m.RequestServices.GetService(typeof(IOptions<RouteOptions>))) 692private static Action<RouteOptions> GetRouteOptions(
RouteConstraintBuilderTest.cs (1)
179var options = new Mock<IOptions<RouteOptions>>(MockBehavior.Strict);
RouteOptionsTests.cs (3)
24var accessor = serviceProvider.GetRequiredService<IOptions<RouteOptions>>(); 40var options = serviceProvider.GetRequiredService<IOptions<RouteOptions>>().Value;
RouteTest.cs (4)
1764services.Configure<RouteOptions>(ConfigureRouteOptions); 1850var routeOptions = new RouteOptions(); 1853var routeOptionsMock = new Mock<IOptions<RouteOptions>>(); 1861private static void ConfigureRouteOptions(RouteOptions options)
RoutingServiceCollectionExtensionsTests.cs (2)
69services.Configure<RouteOptions>(options => 79var options = provider.GetService<IOptions<RouteOptions>>();
TemplateParserDefaultValuesTests.cs (2)
132services.Configure<RouteOptions>(options => { 148var accessor = serviceProvider.GetRequiredService<IOptions<RouteOptions>>();
Tree\TreeRouteBuilderTest.cs (1)
259var accessor = serviceProvider.GetRequiredService<IOptions<RouteOptions>>();
Tree\TreeRouterTest.cs (2)
2060var options = new RouteOptions(); 2063var optionsMock = new Mock<IOptions<RouteOptions>>();
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (1)
2644builder.Services.AddRoutingCore().Configure<RouteOptions>(options =>
WebHostTests.cs (1)
121var routeOptions = host.Services.GetService<IOptions<RouteOptions>>();
Mvc.RoutingWebSite (6)
StartupForDynamic.cs (1)
24services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamicAndRazorPages.cs (1)
19services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForDynamicOrder.cs (1)
39services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForEndpointFilters.cs (1)
17services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForFallback.cs (1)
22services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));
StartupForGroups.cs (1)
17services.Configure<RouteOptions>(options => options.ConstraintMap["slugify"] = typeof(SlugifyParameterTransformer));