3 instantiations of OutboundMatch
Microsoft.AspNetCore.Routing (2)
RouteValuesAddressScheme.cs (1)
116
var outboundMatch = new
OutboundMatch
() { Entry = entry };
Tree\TreeRouter.cs (1)
95
var outboundMatch = new
OutboundMatch
() { Entry = entry, TemplateBinder = binder };
Microsoft.AspNetCore.Routing.Tests (1)
Tree\LinkGenerationDecisionTreeTest.cs (1)
743
var match = new
OutboundMatch
();
106 references to OutboundMatch
Microsoft.AspNetCore.Routing (24)
RouteValuesAddressScheme.cs (4)
72
var matchesWithRequiredValues = new List<
OutboundMatch
>();
116
var
outboundMatch = new OutboundMatch() { Entry = entry };
173
public readonly List<
OutboundMatch
> MatchesWithRequiredValues;
178
List<
OutboundMatch
> matchesWithRequiredValues,
Tree\LinkGenerationDecisionTree.cs (12)
23
private readonly DecisionTreeNode<
OutboundMatch
> _root;
24
private readonly List<
OutboundMatch
> _conventionalEntries;
26
public LinkGenerationDecisionTree(IReadOnlyList<
OutboundMatch
> entries)
31
var attributedEntries = new List<
OutboundMatch
>();
32
_conventionalEntries = new List<
OutboundMatch
>();
42
var
entry = entries[i];
62
_root = DecisionTreeBuilder<
OutboundMatch
>.GenerateTree(
111
DecisionTreeNode<
OutboundMatch
> node,
144
DecisionTreeNode<
OutboundMatch
> branch;
170
private sealed class OutboundMatchClassifier : IClassifier<
OutboundMatch
>
174
public IDictionary<string, DecisionCriterionValue> GetCriteria(
OutboundMatch
item)
236
private static void FlattenTree(Stack<string> branchStack, StringBuilder sb, DecisionTreeNode<
OutboundMatch
> node)
Tree\OutboundMatchResult.cs (2)
8
public OutboundMatchResult(
OutboundMatch
match, bool isFallbackMatch)
14
public
OutboundMatch
Match { get; }
Tree\TreeRouter.cs (6)
38
private readonly IDictionary<string,
OutboundMatch
> _namedEntries;
88
_namedEntries = new Dictionary<string,
OutboundMatch
>(StringComparer.OrdinalIgnoreCase);
90
var outboundMatches = new List<
OutboundMatch
>();
95
var
outboundMatch = new OutboundMatch() { Entry = entry, TemplateBinder = binder };
107
if (_namedEntries.TryGetValue(entry.RouteName, out
var
namedMatch) &&
268
if (_namedEntries.TryGetValue(context.RouteName, out
var
match))
Microsoft.AspNetCore.Routing.Tests (82)
RouteValuesAddressSchemeTest.cs (3)
87
var
match = Assert.Single(allMatches);
451
private static List<Tree.
OutboundMatch
> GetMatchesWithRequiredValuesPlusNamedMatches(RouteValuesAddressScheme routeValuesAddressScheme)
458
var namedMatches = state.NamedMatches.Aggregate(Enumerable.Empty<Tree.
OutboundMatch
>(),
Tree\LinkGenerationDecisionTreeTest.cs (79)
16
var entries = new List<
OutboundMatch
>();
18
var
entry = CreateMatch(new { });
36
var entries = new List<
OutboundMatch
>();
38
var
entry = CreateMatch(new { });
56
var entries = new List<
OutboundMatch
>();
58
var
entry = CreateMatch(new { controller = "Store", action = "Buy" });
76
var entries = new List<
OutboundMatch
>();
78
var
entry = CreateMatch(new { controller = "Store", action = "Buy" });
98
var entries = new List<
OutboundMatch
>();
100
var
entry = CreateMatch(new { controller = "Store", action = "Buy" });
122
var entries = new List<
OutboundMatch
>();
124
var
entry = CreateMatch(new { controller = "Store", action = (string)null });
146
var entries = new List<
OutboundMatch
>();
148
var
entry = CreateMatch(new { controller = "Store", action = "Buy" });
166
var entries = new List<
OutboundMatch
>();
168
var
entry = CreateMatch(new { controller = "Store", action = "Buy" });
188
var entries = new List<
OutboundMatch
>();
190
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy" });
193
var
entry2 = CreateMatch(new { controller = "Store", action = "Cart" });
213
var entries = new List<
OutboundMatch
>();
215
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy" });
218
var
entry2 = CreateMatch(new { controller = "Store" });
239
var entries = new List<
OutboundMatch
>();
241
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy" });
244
var
entry2 = CreateMatch(new { slug = "1234" });
264
var entries = new List<
OutboundMatch
>();
266
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy" });
270
var
entry2 = CreateMatch(new { controller = "Store", action = "Buy" });
291
var entries = new List<
OutboundMatch
>();
293
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy" });
297
var
entry2 = CreateMatch(new { controller = "Store", action = "Buy" });
317
var entries = new List<
OutboundMatch
>();
319
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy" });
323
var
entry2 = CreateMatch(new { controller = "Store", action = "Buy" });
342
var entries = new List<
OutboundMatch
>();
344
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy", area = (string)null, });
348
var
entry2 = CreateMatch(new { controller = "Store", action = "Buy", area = "Admin" });
370
var entries = new List<
OutboundMatch
>();
372
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy", area = (string)null, });
376
var
entry2 = CreateMatch(new { controller = "Store", action = "Buy", area = "Admin" });
398
var entries = new List<
OutboundMatch
>();
400
var
entry1 = CreateMatch(new { controller = "Store", action = "Buy", area = (string)null, });
404
var
entry2 = CreateMatch(new { controller = "Store", action = "Buy", area = "Admin" });
426
var entries = new List<
OutboundMatch
>();
428
var
entry1 = CreateMatch(new { page = "/Store/Buy", area = (string)null, });
432
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = "Admin" });
453
var entries = new List<
OutboundMatch
>();
455
var
entry1 = CreateMatch(new { page = "/Store/Buy", area = (string)null, });
459
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = "Admin" });
481
var entries = new List<
OutboundMatch
>();
483
var
entry1 = CreateMatch(new { page = "/Store/Buy", area = (string)null, });
487
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = "Admin" });
509
var entries = new List<
OutboundMatch
>();
511
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = (string)null, page = (string)null, });
515
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = (string)null, controller = (string)null, action = (string)null, });
536
var entries = new List<
OutboundMatch
>();
538
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = "Admin", page = (string)null, });
542
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = "Admin", controller = (string)null, action = (string)null, });
563
var entries = new List<
OutboundMatch
>();
565
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = (string)null, page = (string)null, });
569
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = (string)null, controller = (string)null, action = (string)null, });
588
var entries = new List<
OutboundMatch
>();
590
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = (string)null, page = (string)null, });
594
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = (string)null, controller = (string)null, action = (string)null, });
613
var entries = new List<
OutboundMatch
>();
615
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = (string)null, page = (string)null, });
619
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = (string)null, controller = (string)null, action = (string)null, });
640
var entries = new List<
OutboundMatch
>();
642
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = "Admin", page = (string)null, });
646
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = "Admin", controller = (string)null, action = (string)null, });
667
var entries = new List<
OutboundMatch
>();
669
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = (string)null, page = (string)null, });
673
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = (string)null, controller = (string)null, action = (string)null, });
692
var entries = new List<
OutboundMatch
>();
694
var
entry1 = CreateMatch(new { controller = "Home", action = "Index", area = (string)null, page = (string)null, });
698
var
entry2 = CreateMatch(new { page = "/Store/Buy", area = (string)null, controller = (string)null, action = (string)null, });
717
var entries = new List<
OutboundMatch
>();
741
private
OutboundMatch
CreateMatch(object requiredValues, string routeTemplate = null)
743
var
match = new OutboundMatch();