37 references to Results
BasicWebSite (1)
ActionDescriptorCreationCounter.cs (1)
36
if (context.
Results
.Count == 0)
Microsoft.AspNetCore.Mvc.Abstractions (1)
Abstractions\IActionDescriptorProvider.cs (1)
19
/// an opportunity to add or modify <see cref="ActionDescriptorProviderContext.
Results
"/>.
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationModels\ControllerActionDescriptorProvider.cs (5)
36
context.
Results
.Add(descriptor);
53
for (var i = 0; i < context.
Results
.Count; i++)
55
var action = context.
Results
[i];
62
for (var i = 0; i < context.
Results
.Count; i++)
64
var action = context.
Results
[i];
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (2)
132
if (context.
Results
.Count == 0)
160
new ReadOnlyCollection<ActionDescriptor>(context.
Results
),
Microsoft.AspNetCore.Mvc.Core.Test (14)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (8)
1293
context.
Results
.Add(new ActionDescriptor()
1301
context.
Results
.Add(new ActionDescriptor()
1315
Assert.True(context.
Results
[0].RouteValues.ContainsKey("page"));
1316
Assert.Null(context.
Results
[0].RouteValues["page"]);
1318
Assert.True(context.
Results
[1].RouteValues.ContainsKey("controller"));
1319
Assert.Null(context.
Results
[1].RouteValues["controller"]);
1320
Assert.True(context.
Results
[1].RouteValues.ContainsKey("action"));
1321
Assert.Null(context.
Results
[1].RouteValues["action"]);
ApplicationModels\EndpointMetadataProviderTest.cs (1)
255
foreach (var descriptor in actionDescriptorProviderContext.
Results
)
Infrastructure\DefaultActionDescriptorCollectionProviderTest.cs (4)
83
context.
Results
.Add(expected1);
87
context.
Results
.Add(expected2);
91
context.
Results
.Add(expected3);
167
context.
Results
.Add(value);
Routing\KnownRouteValueConstraintTests.cs (1)
281
.Callback<ActionDescriptorProviderContext>(c => c.
Results
.Add(actionDescriptor));
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\CompiledPageActionDescriptorProvider.cs (2)
66
foreach (var item in newContext.
Results
)
77
context.
Results
.Add(compiledPageActionDescriptor);
Infrastructure\PageActionDescriptorProvider.cs (1)
51
AddActionDescriptors(context.
Results
, pageRouteModels[i]);
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Infrastructure\PageActionDescriptorProviderTest.cs (8)
29
Assert.Empty(context.
Results
);
60
var result = Assert.Single(context.
Results
);
99
var result = Assert.Single(context.
Results
);
149
var result = Assert.Single(context.
Results
);
195
var result = Assert.Single(context.
Results
);
229
var result = Assert.Single(context.
Results
);
283
Assert.Collection(context.
Results
,
327
Assert.Collection(context.
Results
,
Microsoft.AspNetCore.Mvc.Test (1)
Routing\ActionConstraintMatcherPolicyTest.cs (1)
447
c.
Results
.Add(actions[i]);
Mvc.RoutingWebSite (2)
RemoveControllerActionDescriptorProvider.cs (2)
26
foreach (var item in context.
Results
.ToList())
35
context.
Results
.Remove(item);