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