78 references to ApiConventionNameMatchBehavior
Microsoft.AspNetCore.Mvc.Core (35)
ApiConventionTypeAttribute.cs (1)
23
/// using <see cref="
ApiConventionNameMatchBehavior
.Exact"/> and parameter types are matched
ApiExplorer\ApiConventionMatcher.cs (9)
16
var
methodNameMatchBehavior = GetNameMatchBehavior(conventionMethod);
38
var
nameMatchBehavior = GetNameMatchBehavior(conventionParameter);
54
internal static
ApiConventionNameMatchBehavior
GetNameMatchBehavior(ICustomAttributeProvider attributeProvider)
57
return attribute?.MatchBehavior ??
ApiConventionNameMatchBehavior
.Exact;
80
internal static bool IsNameMatch(string? name, string? conventionName,
ApiConventionNameMatchBehavior
nameMatchBehavior)
84
case
ApiConventionNameMatchBehavior
.Any:
87
case
ApiConventionNameMatchBehavior
.Exact:
90
case
ApiConventionNameMatchBehavior
.Prefix:
93
case
ApiConventionNameMatchBehavior
.Suffix:
ApiExplorer\ApiConventionNameMatchAttribute.cs (6)
8
/// <see cref="
ApiConventionNameMatchBehavior
"/> for supported options.
12
/// <see cref="
ApiConventionNameMatchBehavior
.Exact"/> is used if no value for this
21
/// <param name="matchBehavior">The <see cref="
ApiConventionNameMatchBehavior
"/>.</param>
22
public ApiConventionNameMatchAttribute(
ApiConventionNameMatchBehavior
matchBehavior)
28
/// Gets the <see cref="
ApiConventionNameMatchBehavior
"/>.
30
public
ApiConventionNameMatchBehavior
MatchBehavior { get; }
DefaultApiConventions.cs (19)
22
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
24
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Suffix)]
36
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
38
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Suffix)]
52
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
54
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
66
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
68
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
84
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
86
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Suffix)]
90
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
104
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
106
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Suffix)]
110
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
124
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
126
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Suffix)]
130
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
145
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
147
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Suffix)]
Microsoft.AspNetCore.Mvc.Core.Test (35)
ApiExplorer\ApiConventionMatcherTest.cs (35)
19
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Any);
33
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Exact);
47
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Exact);
61
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Exact);
75
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Exact);
89
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Exact);
103
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Prefix);
117
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Prefix);
131
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Prefix);
145
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Prefix);
159
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Prefix);
173
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Prefix);
187
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Suffix);
201
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Suffix);
215
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Suffix);
229
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Suffix);
243
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Suffix);
255
var result = ApiConventionMatcher.IsNameMatch(name, conventionName,
ApiConventionNameMatchBehavior
.Suffix);
432
var
expected =
ApiConventionNameMatchBehavior
.Exact;
437
var
result = ApiConventionMatcher.GetNameMatchBehavior(provider);
447
var
expected =
ApiConventionNameMatchBehavior
.Exact;
452
var
result = ApiConventionMatcher.GetNameMatchBehavior(provider);
462
var
expected =
ApiConventionNameMatchBehavior
.Prefix;
472
var
result = ApiConventionMatcher.GetNameMatchBehavior(provider);
543
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
546
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
549
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
552
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
555
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
558
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
560
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Exact)]
565
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
Mvc.Api.Analyzers.Test (8)
TestFiles\SymbolApiConventionMatcherTest\SymbolApiConventionMatcherTestFile.cs (8)
24
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
27
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
30
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
33
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
36
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Prefix)]
39
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]
41
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Exact)]
46
[ApiConventionNameMatch(
ApiConventionNameMatchBehavior
.Any)]