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