67 references to Path
Microsoft.AspNetCore.Grpc.Swagger (1)
Internal\GrpcJsonTranscodingDescriptionProvider.cs (1)
119Source = BindingSource.Path,
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\BindingSource.cs (1)
199return bindingSource == Form || bindingSource == Path || bindingSource == Query;
Microsoft.AspNetCore.Mvc.ApiExplorer (8)
DefaultApiDescriptionProvider.cs (6)
250if (parameter.Source == BindingSource.Path || 264parameter.Source = BindingSource.Path; 269if (parameter.Source == BindingSource.Path && 292Source = BindingSource.Path, 318if (parameter.Source == BindingSource.Path && parameter.RouteInfo != null && !parameter.RouteInfo.IsOptional) 329if (parameter.Source == BindingSource.Path)
EndpointMetadataApiDescriptionProvider.cs (2)
259return (BindingSource.Path, routeAttribute.Name ?? name, false, parameterType); 296return (BindingSource.Path, routeParam.Name, false, displayType);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (25)
DefaultApiDescriptionProviderTest.cs (15)
185Assert.Equal(BindingSource.Path, parameter.Source); 231Assert.Equal(BindingSource.Path, parameter.Source); 259BindingSource = BindingSource.Path 288BindingSource = BindingSource.Path 297Assert.Equal(BindingSource.Path, parameter.Source); 438Assert.Equal(BindingSource.Path, id1.Source); 442Assert.Equal(BindingSource.Path, id2.Source); 1372Assert.Same(BindingSource.Path, parameter.Source); 1554Assert.Same(BindingSource.Path, id.Source); 1742Assert.Same(BindingSource.Path, id.Source); 1773Assert.Same(BindingSource.Path, id.Source); 1805Assert.Same(BindingSource.Path, id.Source); 2002Assert.Same(BindingSource.Path, id.Source); 2095Source = BindingSource.Path, 2150Source = BindingSource.Path,
EndpointMetadataApiDescriptionProviderTest.cs (10)
424Assert.Equal(BindingSource.Path, param.Source); 439Assert.Equal(BindingSource.Path, param.Source); 453Assert.Equal(BindingSource.Path, param.Source); 467Assert.Equal(BindingSource.Path, param.Source); 488Assert.Equal(BindingSource.Path, param.Source); 509Assert.Equal(BindingSource.Path, param.Source); 523Assert.Equal(BindingSource.Path, param.Source); 627Assert.Equal(BindingSource.Path, fooParam.Source); 657Assert.Equal(BindingSource.Path, param.Source); 748Assert.Equal(BindingSource.Path, fooParam.Source);
Microsoft.AspNetCore.Mvc.Core (5)
ApiBehaviorOptions.cs (1)
41/// Parameters that appear as route values, are assumed to be bound from the path (<see cref="BindingSource.Path"/>).
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
22/// <item>Parameter with a name that appears as a route value in ANY route template is assigned <see cref="BindingSource.Path"/>.</item> 128return BindingSource.Path;
FromRouteAttribute.cs (1)
31public BindingSource BindingSource => BindingSource.Path;
ModelBinding\RouteValueProviderFactory.cs (1)
19BindingSource.Path,
Microsoft.AspNetCore.Mvc.Core.Test (20)
ApplicationModels\DefaultApplicationModelProviderTest.cs (1)
1338Assert.Same(BindingSource.Path, property.BindingInfo.BindingSource);
ApplicationModels\InferParameterBindingInfoConventionTest.cs (15)
296Assert.Same(BindingSource.Path, result); 311Assert.Same(BindingSource.Path, result); 326Assert.Same(BindingSource.Path, result); 356Assert.Same(BindingSource.Path, result); 371Assert.Same(BindingSource.Path, result); 386Assert.Same(BindingSource.Path, result); 401Assert.Same(BindingSource.Path, result); 416Assert.Same(BindingSource.Path, result); 446Assert.Same(BindingSource.Path, result); 461Assert.Same(BindingSource.Path, result); 476Assert.Same(BindingSource.Path, result); 808Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 829Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 850Assert.Same(BindingSource.Path, bindingInfo.BindingSource); 870Assert.Same(BindingSource.Path, bindingInfo.BindingSource);
ModelBinding\DefaultModelBindingContextTest.cs (1)
172result.Add(new RouteValueProvider(BindingSource.Path, new RouteValueDictionary()));
ModelBinding\Metadata\BindingSourceTest.cs (2)
36BindingSource.Path, 94var result = BindingSource.Query.CanAcceptDataFrom(BindingSource.Path);
ModelBinding\Metadata\CompositeBindingSourceTest.cs (1)
56var result = composite.CanAcceptDataFrom(BindingSource.Path);
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
ApiExplorerTest.cs (2)
1008Assert.Equal(BindingSource.Path.Id, s.Source); 1052Assert.Equal(BindingSource.Path.Id, id.Source);
Microsoft.AspNetCore.Mvc.RazorPages.Test (3)
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (3)
165Assert.Equal(BindingSource.Path, property.BindingInfo.BindingSource); 207Assert.Equal(BindingSource.Path, property.BindingInfo.BindingSource); 393Assert.Equal(BindingSource.Path, property.BindingInfo.BindingSource);
Microsoft.AspNetCore.OpenApi (2)
Extensions\JsonNodeSchemaExtensions.cs (1)
346|| bindingSource == BindingSource.Path
Services\OpenApiDocumentService.cs (1)
450return parameter.Source == BindingSource.Path || parameter.IsRequired || hasRequiredAttribute;