4 writes to Selectors
Microsoft.AspNetCore.Mvc.Core (2)
ApplicationModels\ActionModel.cs (2)
40Selectors = new List<SelectorModel>(); 67Selectors = new List<SelectorModel>(other.Selectors.Select(s => new SelectorModel(s)));
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
54Selectors = { new SelectorModel { AttributeRouteModel = new AttributeRouteModel() } }, 97Selectors = { new SelectorModel { AttributeRouteModel = new AttributeRouteModel() } },
43 references to Selectors
ApiExplorerWebSite (4)
ApiExplorerInboundOutboundConvention.cs (2)
32action.Selectors[0].AttributeRouteModel.SuppressPathMatching = true; 36action.Selectors[0].AttributeRouteModel.SuppressLinkGeneration = true;
ApiExplorerRouteChangeConvention.cs (2)
22action.Selectors.Clear(); 23action.Selectors.Add(new SelectorModel
ApplicationModelWebSite (2)
Controllers\HomeController.cs (2)
44var selector = model.Selectors.First(f => f.AttributeRouteModel.Template == "Home/CannotBeRouted"); 53model.Selectors[0].AttributeRouteModel.SuppressLinkGeneration = true;
Microsoft.AspNetCore.Mvc.Core (5)
ApplicationModels\ActionAttributeRouteModel.cs (2)
56foreach (var actionSelector in actionModel.Selectors) 150foreach (var actionSelectorModel in actionModel.Selectors)
ApplicationModels\ActionModel.cs (1)
67Selectors = new List<SelectorModel>(other.Selectors.Select(s => new SelectorModel(s)));
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
94!IsAttributeRouted(actionModel.Selectors))
ApplicationModels\DefaultApplicationModelProvider.cs (1)
350AddRange(actionModel.Selectors, CreateSelectors(applicableAttributes));
Microsoft.AspNetCore.Mvc.Core.Test (21)
ApplicationModels\ActionModelTest.cs (9)
28action.Selectors.Add(new SelectorModel() 46Assert.NotSame(action.Selectors, action2.Selectors); 47Assert.NotNull(action2.Selectors); 48Assert.Single(action2.Selectors); 49Assert.NotSame(action.Selectors[0], action2.Selectors[0]); 50Assert.NotSame(route, action2.Selectors[0].AttributeRouteModel); 70action.Selectors.Add(selectorModel);
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (4)
79Assert.NotEmpty(actionModel.Selectors); 80Assert.Empty(actionModel.Selectors[0].EndpointMetadata); 122Assert.NotEmpty(actionModel.Selectors); 123Assert.Empty(actionModel.Selectors[0].EndpointMetadata);
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (1)
93var attributeRoutes = action.Selectors.Where(sm => sm.AttributeRouteModel != null);
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
41actionModel.Selectors.Add(new SelectorModel()); 73actionModel.Selectors.Add(new SelectorModel()); 99actionModel.Selectors.Add(new SelectorModel()); 125actionModel.Selectors.Add(new SelectorModel());
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1954action.Selectors.Add(new SelectorModel()
ApplicationModels\RouteTokenTransformerConventionTest.cs (2)
19model.Selectors.Add(new SelectorModel() 39model.Selectors.Add(new SelectorModel()
Microsoft.AspNetCore.Mvc.Cors (1)
CorsApplicationModelProvider.cs (1)
87var selectors = actionModel.Selectors;
Microsoft.AspNetCore.Mvc.Cors.Test (10)
CorsApplicationModelProviderTest.cs (10)
36var selector = Assert.Single(action.Selectors); 55var selector = Assert.Single(action.Selectors); 73var selector = Assert.Single(action.Selectors); 92var selector = Assert.Single(action.Selectors); 111var selector = Assert.Single(action.Selectors); 129var selector = Assert.Single(action.Selectors); 150var selector = Assert.Single(action.Selectors); 169var selector = Assert.Single(action.Selectors); 188var selector = Assert.Single(action.Selectors); 206var selector = Assert.Single(action.Selectors);