2 writes to Endpoint
Microsoft.AspNetCore.Routing (2)
Matching\CandidateState.cs (2)
15
Endpoint
= endpoint;
22
Endpoint
= endpoint;
59 references to Endpoint
Microsoft.AspNetCore.Mvc.Core (3)
Routing\ActionConstraintMatcherPolicy.cs (2)
136
var endpoint = candidate.
Endpoint
;
221
var dataTokens = candidate.
Endpoint
.Metadata.GetMetadata<IDataTokensMetadata>()?.DataTokens;
Routing\DynamicControllerEndpointMatcherPolicy.cs (1)
76
var endpoint = candidates[i].
Endpoint
;
Microsoft.AspNetCore.Mvc.Core.Test (6)
Routing\DynamicControllerEndpointMatcherPolicyTest.cs (6)
154
Assert.Null(candidates[0].
Endpoint
);
189
Assert.Same(ControllerEndpoints[0], candidates[0].
Endpoint
);
267
Assert.Same(ControllerEndpoints[0], candidates[0].
Endpoint
);
390
Assert.Equal("ReplacedEndpoint", candidates[0].
Endpoint
.DisplayName);
433
Assert.Same(ControllerEndpoints[1], candidates[0].
Endpoint
);
434
Assert.Same(ControllerEndpoints[2], candidates[1].
Endpoint
);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
PageLoaderMatcherPolicy.cs (2)
68
var endpoint = candidate.
Endpoint
;
109
var endpoint = candidate.
Endpoint
;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (3)
PageLoaderMatcherPolicyTest.cs (3)
31
Assert.Same(compiled.Endpoint, candidateSet[0].
Endpoint
);
56
Assert.Same(compiled.Endpoint, candidateSet[0].
Endpoint
);
84
Assert.Same(compiled.Endpoint, candidateSet[0].
Endpoint
);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DynamicPageEndpointMatcherPolicy.cs (1)
78
var endpoint = candidates[i].
Endpoint
;
Microsoft.AspNetCore.Mvc.RazorPages.Test (6)
Infrastructure\DynamicPageEndpointMatcherPolicyTest.cs (6)
171
Assert.Null(candidates[0].
Endpoint
);
205
Assert.Same(LoadedEndpoints[0], candidates[0].
Endpoint
);
246
Assert.Same(LoadedEndpoints[0], candidates[0].
Endpoint
);
391
Assert.Equal("ReplacedLoaded", candidates[0].
Endpoint
.DisplayName);
433
Assert.Same(LoadedEndpoints[0], candidates[0].
Endpoint
);
434
Assert.Same(LoadedEndpoints[1], candidates[1].
Endpoint
);
Microsoft.AspNetCore.Routing (12)
Matching\AcceptsMatcherPolicy.cs (1)
61
var metadata = candidates[i].
Endpoint
?.Metadata.GetMetadata<IAcceptsMetadata>();
Matching\CandidateSet.cs (3)
148
candidate = new CandidateState(candidate.
Endpoint
, candidate.Values, score);
305
Candidates[i + endpoints.Count - 1] = new CandidateState(original[i].
Endpoint
, original[i].Values, original[i].Score + scoreOffset);
344
duplicates.Add(candidates[i].
Endpoint
!);
Matching\DefaultEndpointSelector.cs (3)
39
httpContext.SetEndpoint(state.
Endpoint
);
74
endpoint = state.
Endpoint
;
117
matches.Add(state.
Endpoint
);
Matching\HostMatcherPolicy.cs (1)
83
var hosts = candidates[i].
Endpoint
.Metadata.GetMetadata<IHostMetadata>()?.Hosts;
Matching\HttpMethodMatcherPolicy.cs (1)
99
var metadata = candidates[i].
Endpoint
?.Metadata.GetMetadata<IHttpMethodMetadata>();
Matching\NegotiationMatcherPolicy.cs (3)
109
var metadata = GetMetadataValue(candidate.
Endpoint
);
161
bestEndpointQualitySoFar = GetMetadataQuality(candidates[currentIndex].
Endpoint
) ?? 1.0;
180
var endpointQuality = GetMetadataQuality(candidates[currentIndex].
Endpoint
) ?? 1.0;
Microsoft.AspNetCore.Routing.Tests (26)
Matching\CandidateSetTest.cs (19)
35
Assert.Same(endpoints[i], state.
Endpoint
);
71
Assert.Same(endpoint, state.
Endpoint
);
101
Assert.Null(state.
Endpoint
);
132
Assert.Null(candidateSet[0].
Endpoint
);
139
Assert.Same(endpoints[i], state.
Endpoint
);
178
Assert.Same(replacements[0], candidateSet[0].
Endpoint
);
180
Assert.Same(replacements[2], candidateSet[1].
Endpoint
);
182
Assert.Same(replacements[1], candidateSet[2].
Endpoint
);
188
Assert.Same(endpoints[i - 2], state.
Endpoint
);
231
Assert.Same(endpoints[i], state.
Endpoint
);
235
Assert.Same(replacements[0], candidateSet[5].
Endpoint
);
237
Assert.Same(replacements[2], candidateSet[6].
Endpoint
);
239
Assert.Same(replacements[1], candidateSet[7].
Endpoint
);
245
Assert.Same(endpoints[i - 2], state.
Endpoint
);
288
Assert.Same(endpoints[i], state.
Endpoint
);
292
Assert.Same(replacements[0], candidateSet[9].
Endpoint
);
294
Assert.Same(replacements[2], candidateSet[10].
Endpoint
);
296
Assert.Same(replacements[1], candidateSet[11].
Endpoint
);
360
Assert.Same(endpoints[i], state.
Endpoint
);
Matching\DfaMatcherTest.cs (7)
653
Assert.Same(endpoint1, cs[0].
Endpoint
);
658
Assert.Same(endpoint2, cs[1].
Endpoint
);
699
Assert.Same(endpoint1, cs[0].
Endpoint
);
704
Assert.Same(endpoint2, cs[1].
Endpoint
);
746
Assert.Same(endpoint1, cs[0].
Endpoint
);
751
Assert.Same(endpoint2, cs[1].
Endpoint
);
1036
c.SetEndpoint(cs[0].
Endpoint
);