19 references to Mode
Microsoft.AspNetCore.Mvc.TagHelpers (19)
ScriptTagHelper.cs (19)
50private static readonly Func<Mode, Mode, int> Compare = (a, b) => a - b;
53private static readonly ModeAttributes<Mode>[] ModeDetails = new[] {
55new ModeAttributes<Mode>(Mode.AppendVersion, new[] { AppendVersionAttributeName }),
57new ModeAttributes<Mode>(Mode.GlobbedSrc, new [] { SrcIncludeAttributeName }),
59new ModeAttributes<Mode>(Mode.GlobbedSrc, new [] { SrcIncludeAttributeName, SrcExcludeAttributeName }),
61new ModeAttributes<Mode>(Mode.Fallback,
68new ModeAttributes<Mode>(
69Mode.Fallback,
76new ModeAttributes<Mode>(
77Mode.Fallback,
281if (!AttributeMatcher.TryDetermineMode(context, ModeDetails, Compare, out var mode))
305if (mode == Mode.GlobbedSrc || mode == Mode.Fallback && !string.IsNullOrEmpty(SrcInclude))
316if (mode == Mode.Fallback)