44 references to OperationalContext
dotnet-svcutil-lib (44)
Bootstrapper\SvcutilBootstrapper.cs (5)
37if (this.Options.ToolContext.HasValue && this.Options.ToolContext.Value <= OperationalContext.Global) 39this.Options.ToolContext = OperationalContext.Bootstrapper; 55if (this.Options.ToolContext == OperationalContext.Infrastructure) 78ToolConsole.WriteLineIf(ToolConsole.ToolModeLevel != OperationalContext.Infrastructure, Resource.BootstrappingApplicationMsg); 118if (Options.ToolContext == OperationalContext.Infrastructure)
CommandLineParser.cs (4)
25public const OperationalContext DefaultSwitchLevel = OperationalContext.Project; 32public OperationalContext SwitchLevel { get; private set; } 34internal CommandSwitch(string name, string abbreviation, SwitchType switchType, OperationalContext switchLevel = DefaultSwitchLevel)
CommandProcessorOptions.cs (22)
65public readonly CommandSwitch BootstrapDir = new CommandSwitch(BootstrapPathKey, "bd", SwitchType.SingletonValue, OperationalContext.Infrastructure); 67public readonly CommandSwitch CultureName = new CommandSwitch(CultureInfoKey, "cn", SwitchType.SingletonValue, OperationalContext.Infrastructure); 69public readonly CommandSwitch EnableLoggingMarkup = new CommandSwitch(EnableLoggingMarkupKey, "elm", SwitchType.Flag, OperationalContext.Infrastructure); 75public readonly CommandSwitch NoBootstraping = new CommandSwitch(NoBootstrappingKey, "nb", SwitchType.Flag, OperationalContext.Infrastructure); 77public readonly CommandSwitch NoProjectUpdates = new CommandSwitch(NoProjectUpdatesKey, "npu", SwitchType.Flag, OperationalContext.Infrastructure); 78public readonly CommandSwitch NoTelemetry = new CommandSwitch(NoTelemetryKey, "nm", SwitchType.Flag, OperationalContext.Infrastructure); 79public readonly CommandSwitch NoTypeReuse = new CommandSwitch("noTypeReuse", "ntr", SwitchType.Flag, OperationalContext.Project); // this maps to TypeReuseMode, for the command line a flag makes more sense. 81public readonly CommandSwitch OutputDirectory = new CommandSwitch(OutputDirKey, "d", SwitchType.SingletonValue, OperationalContext.Global); 82public readonly CommandSwitch OutputFile = new CommandSwitch(OutputFileKey, "o", SwitchType.SingletonValue, OperationalContext.Global); 83public readonly CommandSwitch ProjectFile = new CommandSwitch(ProjectFileKey, "pf", SwitchType.SingletonValue, OperationalContext.Global); 85public readonly CommandSwitch RuntimeIdentifier = new CommandSwitch(RuntimeIdentifierKey, "ri", SwitchType.SingletonValue, OperationalContext.Global); 88public readonly CommandSwitch TargetFramework = new CommandSwitch(TargetFrameworkKey, "tf", SwitchType.SingletonValue, OperationalContext.Global); 89public readonly CommandSwitch ToolContext = new CommandSwitch(ToolContextKey, "tc", SwitchType.SingletonValue, OperationalContext.Infrastructure); 90public readonly CommandSwitch Update = new CommandSwitch(UpdateServiceReferenceKey, "u", SwitchType.FlagOrSingletonValue, OperationalContext.Project); 152.Where(s => !s_cmdLineOverwriteSwitches.Contains(s.Name) && s.SwitchLevel <= OperationalContext.Global && options.Any(o => 343if (this.ToolContext == OperationalContext.Project) 351if (this.ToolContext != OperationalContext.Project) 437if (!IsUpdateOperation && this.ToolContext <= OperationalContext.Global && File.Exists(filePath)) 449if (this.ToolContext == OperationalContext.Project && this.Project != null && 470if (this.ToolContext == OperationalContext.Project) 617await logger.WriteMessageAsync(Shared.Resources.ResolvingProjectReferences, logToUI: this.ToolContext <= OperationalContext.Global).ConfigureAwait(false); 820if (this.ToolContext == OperationalContext.Infrastructure)
Metadata\ServiceDescriptor.cs (2)
25internal OperationalContext? OperationalCtx { get; set; } 104if (OperationalCtx == OperationalContext.Infrastructure)
Shared\Options\SvcutilOptions.cs (3)
41public OperationalContext? ToolContext { get { return GetValue<OperationalContext?>(ToolContextKey); } set { SetValue(ToolContextKey, value); } } 60new SingleValueOption<OperationalContext>(ToolContextKey),
Tool.cs (4)
175if (options?.ToolContext <= OperationalContext.Global) 209if (options.ToolContext != OperationalContext.Infrastructure) 252ToolConsole.WriteLineIf(options.ToolContext != OperationalContext.Infrastructure, filePath, LogTag.Important); 415if (options == null || options.ToolContext <= OperationalContext.Global)
ToolConsole.cs (4)
29public static OperationalContext ToolModeLevel { get; set; } 50if (ToolConsole.Verbosity > Verbosity.Minimal && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 201if (condition && ToolConsole.Verbosity > Verbosity.Minimal && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 214if (ToolConsole.Verbosity > Verbosity.Silent && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure)