27 writes to AttributeRouteModel
ApiExplorerWebSite (1)
ApiExplorerRouteChangeConvention.cs (1)
25
AttributeRouteModel
= new AttributeRouteModel
Microsoft.AspNetCore.Mvc.Core (6)
ApplicationModels\ActionAttributeRouteModel.cs (4)
35
additionalSelector.
AttributeRouteModel
= null;
69
selector.
AttributeRouteModel
= AttributeRouteModel.CombineAttributeRouteModel(
87
selector.
AttributeRouteModel
= AttributeRouteModel.CombineAttributeRouteModel(
106
selector.
AttributeRouteModel
= AttributeRouteModel.CombineAttributeRouteModel(
ApplicationModels\DefaultApplicationModelProvider.cs (1)
625
selectorModel.
AttributeRouteModel
= new AttributeRouteModel(route);
ApplicationModels\SelectorModel.cs (1)
35
AttributeRouteModel
= new AttributeRouteModel(other.AttributeRouteModel);
Microsoft.AspNetCore.Mvc.Core.Test (9)
ApplicationModels\ActionModelTest.cs (1)
30
AttributeRouteModel
= route
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (4)
46
Selectors = { new SelectorModel {
AttributeRouteModel
= new AttributeRouteModel() } },
54
Selectors = { new SelectorModel {
AttributeRouteModel
= new AttributeRouteModel() } },
89
Selectors = { new SelectorModel {
AttributeRouteModel
= new AttributeRouteModel() } },
97
Selectors = { new SelectorModel {
AttributeRouteModel
= new AttributeRouteModel() } },
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1956
AttributeRouteModel
= new AttributeRouteModel()
ApplicationModels\ControllerModelTest.cs (1)
30
controller.Selectors.Add(new SelectorModel() {
AttributeRouteModel
= route });
ApplicationModels\RouteTokenTransformerConventionTest.cs (2)
21
AttributeRouteModel
= new AttributeRouteModel()
41
AttributeRouteModel
= new AttributeRouteModel()
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
162
AttributeRouteModel
= new AttributeRouteModel
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModelFactory.cs (1)
162
AttributeRouteModel
= new AttributeRouteModel
DependencyInjection\PageConventionCollectionExtensions.cs (1)
434
AttributeRouteModel
= new AttributeRouteModel
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
DependencyInjection\PageConventionCollectionExtensionsTest.cs (1)
989
AttributeRouteModel
= new AttributeRouteModel
Infrastructure\PageActionDescriptorProviderTest.cs (7)
42
AttributeRouteModel
= new AttributeRouteModel
81
AttributeRouteModel
= new AttributeRouteModel
131
AttributeRouteModel
= new AttributeRouteModel
179
AttributeRouteModel
= new AttributeRouteModel(),
213
AttributeRouteModel
= new AttributeRouteModel(),
296
AttributeRouteModel
= new AttributeRouteModel
352
AttributeRouteModel
= new AttributeRouteModel
91 references to AttributeRouteModel
ApiExplorerWebSite (2)
ApiExplorerInboundOutboundConvention.cs (2)
32
action.Selectors[0].
AttributeRouteModel
.SuppressPathMatching = true;
36
action.Selectors[0].
AttributeRouteModel
.SuppressLinkGeneration = true;
ApplicationModelWebSite (3)
Controllers\HomeController.cs (3)
44
var selector = model.Selectors.First(f => f.
AttributeRouteModel
.Template == "Home/CannotBeRouted");
45
selector.
AttributeRouteModel
.SuppressPathMatching = true;
53
model.Selectors[0].
AttributeRouteModel
.SuppressLinkGeneration = true;
Microsoft.AspNetCore.Mvc.Core (31)
ApplicationModels\ActionAttributeRouteModel.cs (7)
17
.Where(sm => sm.
AttributeRouteModel
!= null)
58
var actionRouteModel = actionSelector.
AttributeRouteModel
;
88
controllerSelector.
AttributeRouteModel
,
146
.Where(sm => sm.
AttributeRouteModel
!= null)
147
.Select(sm => sm.
AttributeRouteModel
)
152
var actionRouteModel = actionSelectorModel.
AttributeRouteModel
;
173
controllerSelector.
AttributeRouteModel
,
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
107
if (selectorModel[i].
AttributeRouteModel
!= null)
ApplicationModels\ApplicationModelFactory.cs (12)
124
if (selector.
AttributeRouteModel
== null)
147
selector.
AttributeRouteModel
.Template = AttributeRouteModel.ReplaceTokens(
148
selector.
AttributeRouteModel
.Template!,
152
if (selector.
AttributeRouteModel
.Name != null)
154
selector.
AttributeRouteModel
.Name = AttributeRouteModel.ReplaceTokens(
155
selector.
AttributeRouteModel
.Name,
192
var routeName = selector.
AttributeRouteModel
?.Name;
232
var template = actions[0].selector.
AttributeRouteModel
!.Template!;
236
var other = actions[i].selector.
AttributeRouteModel
!.Template;
242
return Resources.FormatAttributeRoute_DuplicateNames_Item(a.action.DisplayName, a.selector.
AttributeRouteModel
!.Template);
265
if (actions[i].selector.
AttributeRouteModel
== null)
301
var routeTemplate = selector.
AttributeRouteModel
?.Template ?? nullTemplate;
ApplicationModels\ControllerActionDescriptorBuilder.cs (6)
199
if (selectorModel.
AttributeRouteModel
!= null)
203
Template = selectorModel.
AttributeRouteModel
.Template,
204
Order = selectorModel.
AttributeRouteModel
.Order ?? 0,
205
Name = selectorModel.
AttributeRouteModel
.Name,
206
SuppressLinkGeneration = selectorModel.
AttributeRouteModel
.SuppressLinkGeneration,
207
SuppressPathMatching = selectorModel.
AttributeRouteModel
.SuppressPathMatching,
ApplicationModels\InferParameterBindingInfoConvention.cs (2)
157
if (selector.
AttributeRouteModel
== null)
162
var parsedTemplate = TemplateParser.Parse(selector.
AttributeRouteModel
.Template!);
ApplicationModels\SelectorModel.cs (3)
33
if (other.
AttributeRouteModel
!= null)
35
AttributeRouteModel = new AttributeRouteModel(other.
AttributeRouteModel
);
40
/// The <see cref="
AttributeRouteModel
"/>.
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\ActionModelTest.cs (1)
50
Assert.NotSame(route, action2.Selectors[0].
AttributeRouteModel
);
ApplicationModels\AuthorizationApplicationModelProviderTest.cs (1)
93
var attributeRoutes = action.Selectors.Where(sm => sm.
AttributeRouteModel
!= null);
ApplicationModels\ControllerModelTest.cs (1)
45
Assert.NotSame(route, controller2.Selectors[0].
AttributeRouteModel
);
ApplicationModels\DefaultApplicationModelProviderTest.cs (2)
1387
.Where(sm => sm.
AttributeRouteModel
!= null)
1388
.Select(sm => sm.
AttributeRouteModel
)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
69
selectorModel.
AttributeRouteModel
!.SuppressLinkGeneration = true;
Microsoft.AspNetCore.Mvc.RazorPages (8)
ApplicationModels\PageRouteModelFactory.cs (1)
69
selectorModel.
AttributeRouteModel
!.SuppressLinkGeneration = true;
DependencyInjection\PageConventionCollectionExtensions.cs (1)
429
selector.
AttributeRouteModel
!.SuppressLinkGeneration = true;
Infrastructure\PageActionDescriptorProvider.cs (6)
96
Name = selector.
AttributeRouteModel
!.Name,
97
Order = selector.
AttributeRouteModel
.Order ?? 0,
99
SuppressLinkGeneration = selector.
AttributeRouteModel
.SuppressLinkGeneration,
100
SuppressPathMatching = selector.
AttributeRouteModel
.SuppressPathMatching,
132
return selectorModel.
AttributeRouteModel
!.Template;
141
return selectorModel.
AttributeRouteModel
!.Template;
Microsoft.AspNetCore.Mvc.RazorPages.Test (41)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (20)
44
selector => Assert.Equal("About", selector.
AttributeRouteModel
.Template));
59
selector => Assert.Equal("Home/some-prefix", selector.
AttributeRouteModel
.Template));
106
selector => Assert.Equal("Products/About", selector.
AttributeRouteModel
.Template));
125
selector => Assert.Equal("Products/Manage/Index", selector.
AttributeRouteModel
.Template),
126
selector => Assert.Equal("Products/Manage", selector.
AttributeRouteModel
.Template));
146
selector => Assert.Equal("Products/Manage/Edit/{id}", selector.
AttributeRouteModel
.Template));
194
selector => Assert.Equal("Accounts/Manage/Home", selector.
AttributeRouteModel
.Template));
214
selector => Assert.Equal("Contact", selector.
AttributeRouteModel
.Template));
254
selector => Assert.Equal("Pages/Index", selector.
AttributeRouteModel
.Template),
255
selector => Assert.Equal("Pages", selector.
AttributeRouteModel
.Template));
263
selector => Assert.Equal("Pages/Admin/Index/some-template", selector.
AttributeRouteModel
.Template),
264
selector => Assert.Equal("Pages/Admin/some-template", selector.
AttributeRouteModel
.Template));
296
selector => Assert.Equal("Index", selector.
AttributeRouteModel
.Template),
297
selector => Assert.Equal("", selector.
AttributeRouteModel
.Template));
305
selector => Assert.Equal("Admin/Index/some-template", selector.
AttributeRouteModel
.Template),
306
selector => Assert.Equal("Admin/some-template", selector.
AttributeRouteModel
.Template));
341
selector => Assert.Equal("some-other-prefix", selector.
AttributeRouteModel
.Template));
349
selector => Assert.Equal("some-prefix", selector.
AttributeRouteModel
.Template));
416
selector => Assert.Equal("_About", selector.
AttributeRouteModel
.Template));
431
selector => Assert.Equal("Home", selector.
AttributeRouteModel
.Template));
ApplicationModels\PageRouteModelFactoryTest.cs (7)
29
selector => Assert.Equal("Users/Profile/{id?}", selector.
AttributeRouteModel
.Template));
57
selector => Assert.Equal("Users/Profile/Index/{id?}", selector.
AttributeRouteModel
.Template),
58
selector => Assert.Equal("Users/Profile/{id?}", selector.
AttributeRouteModel
.Template));
86
selector => Assert.Equal("my-override", selector.
AttributeRouteModel
.Template));
115
selector => Assert.Equal("TestArea/Users/Profile/{id?}", selector.
AttributeRouteModel
.Template));
149
selector => Assert.Equal("TestArea/Users/Profile/Index/{id?}", selector.
AttributeRouteModel
.Template),
150
selector => Assert.Equal("TestArea/Users/Profile/{id?}", selector.
AttributeRouteModel
.Template));
DependencyInjection\PageConventionCollectionExtensionsTest.cs (14)
894
Assert.Equal("Index", selector.
AttributeRouteModel
.Template);
895
Assert.True(selector.
AttributeRouteModel
.SuppressLinkGeneration);
899
Assert.Equal("", selector.
AttributeRouteModel
.Template);
900
Assert.True(selector.
AttributeRouteModel
.SuppressLinkGeneration);
904
Assert.Equal("Different-Route", selector.
AttributeRouteModel
.Template);
905
Assert.False(selector.
AttributeRouteModel
.SuppressLinkGeneration);
914
Assert.Equal("About", selector.
AttributeRouteModel
.Template);
915
Assert.False(selector.
AttributeRouteModel
.SuppressLinkGeneration);
955
Assert.Equal("Profile", selector.
AttributeRouteModel
.Template);
956
Assert.False(selector.
AttributeRouteModel
.SuppressLinkGeneration);
965
Assert.Equal("Accounts/Profile", selector.
AttributeRouteModel
.Template);
966
Assert.True(selector.
AttributeRouteModel
.SuppressLinkGeneration);
970
Assert.Equal("Different-Route", selector.
AttributeRouteModel
.Template);
971
Assert.False(selector.
AttributeRouteModel
.SuppressLinkGeneration);