14 writes to CurrentCandidate
Microsoft.AspNetCore.Mvc.Core (3)
ConsumesAttribute.cs (1)
207
CurrentCandidate
= candidate
Infrastructure\ActionSelector.cs (1)
197
constraintContext.
CurrentCandidate
= candidate;
Routing\ActionConstraintMatcherPolicy.cs (1)
209
constraintContext.
CurrentCandidate
= item.candidate;
Microsoft.AspNetCore.Mvc.Core.Test (10)
ActionConstraints\HttpMethodActionConstraintTest.cs (1)
63
context.
CurrentCandidate
= context.Candidates[0];
ConsumesAttributeTests.cs (9)
97
context.
CurrentCandidate
= context.Candidates[0];
132
context.
CurrentCandidate
= context.Candidates[0];
170
context.
CurrentCandidate
= context.Candidates[0];
210
context.
CurrentCandidate
= context.Candidates[0];
212
context.
CurrentCandidate
= context.Candidates[1];
249
context.
CurrentCandidate
= context.Candidates[0];
252
context.
CurrentCandidate
= context.Candidates[1];
288
context.
CurrentCandidate
= context.Candidates[0];
290
context.
CurrentCandidate
= context.Candidates[1];
Microsoft.AspNetCore.Mvc.Cors.Test (1)
CorsHttpMethodActionConstraintTest.cs (1)
79
context.
CurrentCandidate
= context.Candidates[0];
3 references to CurrentCandidate
Microsoft.AspNetCore.Mvc.Core (3)
ActionConstraints\ActionMethodSelectorAttribute.cs (1)
22
return IsValidForRequest(context.RouteContext, context.
CurrentCandidate
.Action);
ConsumesAttribute.cs (2)
152
if (!IsApplicable(context.
CurrentCandidate
.Action))
183
if (firstCandidate.Action != context.
CurrentCandidate
.Action)