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