13 references to RouteUsageType
Microsoft.AspNetCore.App.Analyzers (13)
Infrastructure\RouteUsageCache.cs (2)
65var isMvc = usageContext.UsageType == RouteUsageType.MvcAction || usageContext.UsageType == RouteUsageType.MvcController;
RouteEmbeddedLanguage\Infrastructure\RouteUsageDetector.cs (10)
37RouteUsageType UsageType, 44RouteUsageType.MvcAction or RouteUsageType.MvcController => RoutePatternOptions.MvcAttributeRoute, 45RouteUsageType.Component => RoutePatternOptions.ComponentsRoute, 65UsageType: RouteUsageType.Component, 104UsageType: RouteUsageType.MinimalApi, 131UsageType: RouteUsageType.MvcAction, 139var usageType = MvcDetector.IsController(classSymbol, wellKnownTypes) ? RouteUsageType.MvcController : RouteUsageType.Other;
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
264if (context.RouteUsage.UsageContext.UsageType != RouteUsageType.Component)