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)
66public readonly CommandSwitch BootstrapDir = new CommandSwitch(BootstrapPathKey, "bd", SwitchType.SingletonValue, OperationalContext.Infrastructure); 68public readonly CommandSwitch CultureName = new CommandSwitch(CultureInfoKey, "cn", SwitchType.SingletonValue, OperationalContext.Infrastructure); 70public readonly CommandSwitch EnableLoggingMarkup = new CommandSwitch(EnableLoggingMarkupKey, "elm", SwitchType.Flag, OperationalContext.Infrastructure); 76public readonly CommandSwitch NoBootstraping = new CommandSwitch(NoBootstrappingKey, "nb", SwitchType.Flag, OperationalContext.Infrastructure); 78public readonly CommandSwitch NoProjectUpdates = new CommandSwitch(NoProjectUpdatesKey, "npu", SwitchType.Flag, OperationalContext.Infrastructure); 79public readonly CommandSwitch NoTelemetry = new CommandSwitch(NoTelemetryKey, "nm", SwitchType.Flag, OperationalContext.Infrastructure); 80public readonly CommandSwitch NoTypeReuse = new CommandSwitch("noTypeReuse", "ntr", SwitchType.Flag, OperationalContext.Project); // this maps to TypeReuseMode, for the command line a flag makes more sense. 82public readonly CommandSwitch OutputDirectory = new CommandSwitch(OutputDirKey, "d", SwitchType.SingletonValue, OperationalContext.Global); 83public readonly CommandSwitch OutputFile = new CommandSwitch(OutputFileKey, "o", SwitchType.SingletonValue, OperationalContext.Global); 84public readonly CommandSwitch ProjectFile = new CommandSwitch(ProjectFileKey, "pf", SwitchType.SingletonValue, OperationalContext.Global); 86public readonly CommandSwitch RuntimeIdentifier = new CommandSwitch(RuntimeIdentifierKey, "ri", SwitchType.SingletonValue, OperationalContext.Global); 89public readonly CommandSwitch TargetFramework = new CommandSwitch(TargetFrameworkKey, "tf", SwitchType.SingletonValue, OperationalContext.Global); 90public readonly CommandSwitch ToolContext = new CommandSwitch(ToolContextKey, "tc", SwitchType.SingletonValue, OperationalContext.Infrastructure); 91public readonly CommandSwitch Update = new CommandSwitch(UpdateServiceReferenceKey, "u", SwitchType.FlagOrSingletonValue, OperationalContext.Project); 153.Where(s => !s_cmdLineOverwriteSwitches.Contains(s.Name) && s.SwitchLevel <= OperationalContext.Global && options.Any(o => 344if (this.ToolContext == OperationalContext.Project) 352if (this.ToolContext != OperationalContext.Project) 438if (!IsUpdateOperation && this.ToolContext <= OperationalContext.Global && File.Exists(filePath)) 450if (this.ToolContext == OperationalContext.Project && this.Project != null && 471if (this.ToolContext == OperationalContext.Project) 618await logger.WriteMessageAsync(Shared.Resources.ResolvingProjectReferences, logToUI: this.ToolContext <= OperationalContext.Global).ConfigureAwait(false); 833if (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); 400if (options == null || options.ToolContext <= OperationalContext.Global)
ToolConsole.cs (4)
29public static OperationalContext ToolModeLevel { get; set; } 50if (ToolConsole.Verbosity > Verbosity.Minimal && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 217if (condition && ToolConsole.Verbosity > Verbosity.Minimal && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure) 230if (ToolConsole.Verbosity > Verbosity.Silent && ToolConsole.ToolModeLevel != OperationalContext.Infrastructure)