6 instantiations of AttributeRouteModel
Microsoft.AspNetCore.Mvc.Core (4)
ApplicationModels\AttributeRouteModel.cs (2)
18
private static readonly AttributeRouteModel _default = new
AttributeRouteModel
();
123
return new
AttributeRouteModel
()
ApplicationModels\DefaultApplicationModelProvider.cs (1)
658
selectorModel.AttributeRouteModel = new
AttributeRouteModel
(route);
ApplicationModels\SelectorModel.cs (1)
35
AttributeRouteModel = new
AttributeRouteModel
(other.AttributeRouteModel);
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModelFactory.cs (1)
162
AttributeRouteModel = new
AttributeRouteModel
DependencyInjection\PageConventionCollectionExtensions.cs (1)
434
AttributeRouteModel = new
AttributeRouteModel
32 references to AttributeRouteModel
Microsoft.AspNetCore.Mvc.Core (29)
ApplicationModels\ActionAttributeRouteModel.cs (12)
58
var
actionRouteModel = actionSelector.AttributeRouteModel;
69
selector.AttributeRouteModel =
AttributeRouteModel
.CombineAttributeRouteModel(
87
selector.AttributeRouteModel =
AttributeRouteModel
.CombineAttributeRouteModel(
106
selector.AttributeRouteModel =
AttributeRouteModel
.CombineAttributeRouteModel(
143
public static IEnumerable<(
AttributeRouteModel
? route, SelectorModel actionSelector, SelectorModel? controllerSelector)> GetAttributeRoutes(ActionModel actionModel)
152
var
actionRouteModel = actionSelectorModel.AttributeRouteModel;
159
var
route =
AttributeRouteModel
.CombineAttributeRouteModel(
172
var
route =
AttributeRouteModel
.CombineAttributeRouteModel(
181
var
route =
AttributeRouteModel
.CombineAttributeRouteModel(
ApplicationModels\ApplicationModelFactory.cs (2)
147
selector.AttributeRouteModel.Template =
AttributeRouteModel
.ReplaceTokens(
154
selector.AttributeRouteModel.Name =
AttributeRouteModel
.ReplaceTokens(
ApplicationModels\AttributeRouteModel.cs (14)
18
private static readonly
AttributeRouteModel
_default = new AttributeRouteModel();
44
/// <param name="other">The <see cref="
AttributeRouteModel
"/> to copy.</param>
45
public AttributeRouteModel(
AttributeRouteModel
other)
94
/// Combines two <see cref="
AttributeRouteModel
"/> instances and returns
95
/// a new <see cref="
AttributeRouteModel
"/> instance with the result.
97
/// <param name="left">The left <see cref="
AttributeRouteModel
"/>.</param>
98
/// <param name="right">The right <see cref="
AttributeRouteModel
"/>.</param>
99
/// <returns>A new instance of <see cref="
AttributeRouteModel
"/> that represents the
100
/// combination of the two <see cref="
AttributeRouteModel
"/> instances or <c>null</c> if both
102
public static
AttributeRouteModel
? CombineAttributeRouteModel(
103
AttributeRouteModel
? left,
104
AttributeRouteModel
? right)
161
AttributeRouteModel
left,
162
AttributeRouteModel
right)
ApplicationModels\SelectorModel.cs (1)
42
public
AttributeRouteModel
? AttributeRouteModel { get; set; }
Microsoft.AspNetCore.Mvc.RazorPages (3)
ApplicationModels\PageRouteModelFactory.cs (2)
64
if (!
AttributeRouteModel
.IsOverridePattern(routeTemplate) &&
164
Template =
AttributeRouteModel
.CombineTemplates(prefix, routeTemplate),
Infrastructure\PageActionDescriptorProvider.cs (1)
153
return
AttributeRouteModel
.CombineTemplates(transformedPageRoute, pageRouteMetadata.RouteTemplate);