2 implementations of IInlineConstraintResolver
Microsoft.AspNetCore.Routing (2)
DefaultInlineConstraintResolver.cs (1)
16public class DefaultInlineConstraintResolver : IInlineConstraintResolver
MapRouteRouteBuilderExtensions.cs (1)
142private sealed class BackCompatInlineConstraintResolver : IInlineConstraintResolver
65 references to IInlineConstraintResolver
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
DefaultApiDescriptionProvider.cs (3)
31private readonly IInlineConstraintResolver _constraintResolver; 38/// <param name="constraintResolver">The <see cref="IInlineConstraintResolver"/> used for resolving inline 46IInlineConstraintResolver constraintResolver,
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
DefaultApiDescriptionProviderTest.cs (1)
2240var constraintResolver = new Mock<IInlineConstraintResolver>();
Microsoft.AspNetCore.Mvc.Core.Test (3)
Routing\AttributeRoutingTest.cs (1)
174.AddSingleton<IInlineConstraintResolver>(inlineConstraintResolver);
Routing\KnownRouteValueConstraintTests.cs (2)
38var inlineConstraintResolver = serviceProvider.GetRequiredService<IInlineConstraintResolver>();
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
PageRemoteAttributeTest.cs (1)
192serviceCollection.AddSingleton<IInlineConstraintResolver>(
RemoteAttributeTest.cs (1)
493serviceCollection.AddSingleton<IInlineConstraintResolver>(
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
65var constraintResolver = new Mock<IInlineConstraintResolver>();
Microsoft.AspNetCore.Routing (31)
DefaultInlineConstraintResolver.cs (1)
12/// The default implementation of <see cref="IInlineConstraintResolver"/>. Resolves constraints by parsing
DependencyInjection\RoutingServiceCollectionExtensions.cs (3)
49services.TryAddTransient<IInlineConstraintResolver, DefaultInlineConstraintResolver>(); 63var constraintResolver = s.GetRequiredService<IInlineConstraintResolver>();
MapRouteRouteBuilderExtensions.cs (5)
129private static IInlineConstraintResolver CreateInlineConstraintResolver(IServiceProvider serviceProvider) 131var inlineConstraintResolver = serviceProvider 132.GetRequiredService<IInlineConstraintResolver>(); 144private readonly IInlineConstraintResolver _inner; 147public BackCompatInlineConstraintResolver(IInlineConstraintResolver inner, ParameterPolicyFactory parameterPolicyFactory)
RequestDelegateRouteBuilderExtensions.cs (2)
297private static IInlineConstraintResolver GetConstraintResolver(IRouteBuilder builder) 299return builder.ServiceProvider.GetRequiredService<IInlineConstraintResolver>();
Route.cs (6)
20/// <param name="inlineConstraintResolver">An <see cref="IInlineConstraintResolver"/> used for resolving inline constraints.</param> 24IInlineConstraintResolver inlineConstraintResolver) 43/// <param name="inlineConstraintResolver">An <see cref="IInlineConstraintResolver"/> used for resolving inline constraints.</param> 50IInlineConstraintResolver inlineConstraintResolver) 64/// <param name="inlineConstraintResolver">An <see cref="IInlineConstraintResolver"/> used for resolving inline constraints.</param> 72IInlineConstraintResolver inlineConstraintResolver)
RouteBase.cs (5)
30/// <param name="constraintResolver">An <see cref="IInlineConstraintResolver"/> used for resolving inline constraints.</param> 37IInlineConstraintResolver constraintResolver, 72protected virtual IInlineConstraintResolver ConstraintResolver { get; set; } 201/// <param name="inlineConstraintResolver">An <see cref="IInlineConstraintResolver"/> used for resolving inline constraints.</param> 205IInlineConstraintResolver inlineConstraintResolver,
RouteConstraintBuilder.cs (6)
24private readonly IInlineConstraintResolver _inlineConstraintResolver; 32/// <param name="inlineConstraintResolver">The <see cref="IInlineConstraintResolver"/>.</param> 35IInlineConstraintResolver inlineConstraintResolver, 123/// Adds a constraint for the given key, resolved by the <see cref="IInlineConstraintResolver"/>. 126/// <param name="constraintText">The text to be resolved by <see cref="IInlineConstraintResolver"/>.</param> 128/// The <see cref="IInlineConstraintResolver"/> can create <see cref="IRouteConstraint"/> instances
Tree\TreeRouteBuilder.cs (3)
36private readonly IInlineConstraintResolver _constraintResolver; 44/// <param name="constraintResolver">The <see cref="IInlineConstraintResolver"/>.</param> 51IInlineConstraintResolver constraintResolver)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
14private readonly IInlineConstraintResolver _constraintResolver;
Microsoft.AspNetCore.Routing.Tests (23)
DefaultInlineConstraintResolverTest.cs (8)
14private readonly IInlineConstraintResolver _constraintResolver; 261var resolver = GetInlineConstraintResolver(routeOptions); 276var resolver = GetInlineConstraintResolver(routeOptions); 301var resolver = GetInlineConstraintResolver(routeOptions); 316var resolver = GetInlineConstraintResolver(routeOptions); 331var resolver = GetInlineConstraintResolver(routeOptions); 349var resolver = GetInlineConstraintResolver(routeOptions); 366private IInlineConstraintResolver GetInlineConstraintResolver(RouteOptions routeOptions)
InlineRouteParameterParserTests.cs (3)
946var _constraintResolver = GetConstraintResolver(); 953var _constraintResolver = GetConstraintResolver(); 957private static IInlineConstraintResolver GetConstraintResolver()
Matching\RouteMatcherBuilder.cs (1)
14private readonly IInlineConstraintResolver _constraintResolver;
RouteCollectionTest.cs (2)
566IInlineConstraintResolver constraintResolver = null) 575constraintResolver = new Mock<IInlineConstraintResolver>().Object;
RouterMiddlewareTest.cs (1)
52var route = new Route(handler, "/foo/{id}", Mock.Of<IInlineConstraintResolver>());
RouteTest.cs (3)
22private static readonly IInlineConstraintResolver _inlineConstraintResolver = GetInlineConstraintResolver(); 1761services.AddSingleton<IInlineConstraintResolver>(_inlineConstraintResolver); 1848private static IInlineConstraintResolver GetInlineConstraintResolver()
TemplateParserDefaultValuesTests.cs (3)
15private static readonly IInlineConstraintResolver _inlineConstraintResolver = GetInlineConstraintResolver(); 129services.AddSingleton<IInlineConstraintResolver>(_inlineConstraintResolver); 144private static IInlineConstraintResolver GetInlineConstraintResolver()
Tree\TreeRouteBuilderTest.cs (2)
247var constraintResolver = GetInlineConstraintResolver(); 255private static IInlineConstraintResolver GetInlineConstraintResolver()