1 write to UsageContext
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RouteUsageCache.cs (1)
75
UsageContext
= usageContext
14 references to UsageContext
Microsoft.AspNetCore.App.Analyzers (14)
Mvc\DetectAmbiguousActionRoutes.cs (1)
44
ambiguousActionRoute.RouteUsageModel.
UsageContext
.RouteToken.GetLocation(),
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (4)
69
if (routeUsage.
UsageContext
.MethodSymbol != null)
73
foreach (var parameter in routeUsage.
UsageContext
.ResolvedParameters)
86
routeUsage.
UsageContext
.ResolvedParameters);
89
parameterInsertIndex = routeUsage.
UsageContext
.Parameters.IndexOf(ip.ExistingParameter);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (3)
235
if (context.RouteUsage.
UsageContext
.MethodSymbol != null)
237
foreach (var parameterSymbol in context.RouteUsage.
UsageContext
.ResolvedParameters)
264
if (context.RouteUsage.
UsageContext
.UsageType != RouteUsageType.Component)
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (2)
55
if (routeUsage.
UsageContext
.MethodSymbol is { } methodSymbol)
58
var resolvedParameters = routeUsage.
UsageContext
.ResolvedParameters;
RouteHandlers\DetectAmbiguousRoutes.cs (3)
31
.Where(u => u.ResolvedOperation != null && !u.MapOperation.RouteUsageModel.
UsageContext
.HttpMethods.IsDefault)
32
.GroupBy(u => new MapOperationGroupKey(u.MapOperation.Builder, u.ResolvedOperation!, u.MapOperation.RouteUsageModel.RoutePattern, u.MapOperation.RouteUsageModel.
UsageContext
.HttpMethods));
42
model.
UsageContext
.RouteToken.GetLocation(),
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (1)
92
var resolvedParameter = routeUsage.
UsageContext
.ResolvedParameters.FirstOrDefault(rp => rp.Symbol.Name == handlerDelegateParameter.Name);