76 references to CommandLineOption
WsatConfig (76)
CommandLine\ArgumentsParser.cs (26)
59
if (optionsHitCount.ContainsKey(
CommandLineOption
.Network))
64
if (optionsHitCount.ContainsKey(
CommandLineOption
.ClusterRemoteNode))
69
if (optionsHitCount.ContainsKey(
CommandLineOption
.Restart))
112
AddOptionParserPair(
CommandLineOption
.Network, new NetworkParser());
113
AddOptionParserPair(
CommandLineOption
.Port, new PortParser());
114
AddOptionParserPair(
CommandLineOption
.MaxTimeout, new MaxTimeoutParser());
115
AddOptionParserPair(
CommandLineOption
.DefaultTimeout, new DefaultTimeoutParser());
116
AddOptionParserPair(
CommandLineOption
.TraceLevel, new TraceLevelParser());
117
AddOptionParserPair(
CommandLineOption
.TraceActivity, new TraceActivityParser());
118
AddOptionParserPair(
CommandLineOption
.TraceProp, new TracePropagationParser());
119
AddOptionParserPair(
CommandLineOption
.TracePii, new TracePiiParser());
120
AddOptionParserPair(
CommandLineOption
.EndpointCert, new EndpointCertificateParser());
121
AddOptionParserPair(
CommandLineOption
.Accounts, new AccountsParser());
122
AddOptionParserPair(
CommandLineOption
.ClusterRemoteNode, new ClusterRemoteNodeParser());
123
AddOptionParserPair(
CommandLineOption
.AccountsCerts, new AccountsCertificatesParser());
151
if (Utilities.SafeCompare(value,
CommandLineOption
.Enable))
157
else if (Utilities.SafeCompare(value,
CommandLineOption
.Disable))
258
if (Utilities.SafeCompare(value,
CommandLineOption
.Enable))
263
else if (Utilities.SafeCompare(value,
CommandLineOption
.Disable))
281
if (Utilities.SafeCompare(value,
CommandLineOption
.Enable))
286
else if (Utilities.SafeCompare(value,
CommandLineOption
.Disable))
304
if (Utilities.SafeCompare(value,
CommandLineOption
.Enable))
309
else if (Utilities.SafeCompare(value,
CommandLineOption
.Disable))
327
if (Utilities.SafeCompare(value,
CommandLineOption
.CertMachine))
414
if (Utilities.SafeCompare(value,
CommandLineOption
.Enable))
419
else if (Utilities.SafeCompare(value,
CommandLineOption
.Disable))
CommandLine\ConsoleEntryPoint.cs (6)
177
if (Utilities.SafeCompare(arg,
CommandLineOption
.Help) ||
178
Utilities.SafeCompare(arg,
CommandLineOption
.Help_short1) ||
179
Utilities.SafeCompare(arg,
CommandLineOption
.Help_short2))
186
if (Utilities.SafeCompare(arg,
CommandLineOption
.Show))
193
if (Utilities.SafeCompare(arg,
CommandLineOption
.Restart))
201
if (Utilities.SafeCompare(ArgumentsParser.ExtractOption(arg, out value),
CommandLineOption
.ClusterVirtualServer))
CommandLine\OptionUsage.cs (14)
77
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.Network, string.Empty, SR.GetString(SR.ConsoleUsageLineNetworkUse), SR.GetString(SR.ConsoleUsageLineNetworkHelp)));
82
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.Port, string.Empty, SR.GetString(SR.ConsoleUsageLinePortUse), SR.GetString(SR.ConsoleUsageLinePortHelp)));
91
WriteMultiUsesUsage(
CommandLineOption
.EndpointCert, optionUses, SR.GetString(SR.ConsoleUsageLineEndpointCertsHelp));
100
WriteMultiUsesUsage(
CommandLineOption
.AccountsCerts, optionUses, SR.GetString(SR.ConsoleUsageLineAccountsCertsHelp));
105
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.ClusterVirtualServer, string.Empty, SR.GetString(SR.ConsoleUsageLineClusterVirtualServerUse), SR.GetString(SR.ConsoleUsageLineClusterVirtualServerHelp)));
115
WriteMultiUsesUsage(
CommandLineOption
.TraceLevel, optionUses, SR.GetString(SR.ConsoleUsageLineTraceLevelHelp));
120
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.Accounts, string.Empty, SR.GetString(SR.ConsoleUsageLineAccountsUse), SR.GetString(SR.ConsoleUsageLineAccountsHelp)));
125
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.DefaultTimeout, string.Empty, SR.GetString(SR.ConsoleUsageLineTimeoutUse), SR.GetString(SR.ConsoleUsageLineTimeoutHelp)));
130
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.MaxTimeout, string.Empty, SR.GetString(SR.ConsoleUsageLineMaxTimeoutUse), SR.GetString(SR.ConsoleUsageLineMaxTimeoutHelp)));
135
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.TraceActivity, string.Empty, SR.GetString(SR.ConsoleUsageLineTraceActivityUse), SR.GetString(SR.ConsoleUsageLineTraceActivityHelp)));
140
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.TraceProp, string.Empty, SR.GetString(SR.ConsoleUsageLineTracePropUse), SR.GetString(SR.ConsoleUsageLineTracePropHelp)));
145
builder.WriteParagraph(GenerateParameterHelp(
CommandLineOption
.TracePii, string.Empty, SR.GetString(SR.ConsoleUsageLineTracePIIUse), SR.GetString(SR.ConsoleUsageLineTracePIIHelp)));
150
builder.WriteParagraph(GenerateFlagHelp(
CommandLineOption
.Show, string.Empty, SR.GetString(SR.ConsoleUsageLineShowHelp)));
155
builder.WriteParagraph(GenerateFlagHelp(
CommandLineOption
.Restart, string.Empty, SR.GetString(SR.ConsoleUsageLineRestartHelp)));
Configuration\Utilities.cs (7)
94
if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingOff))
98
else if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingError))
102
else if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingCritical))
106
else if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingWarning))
110
else if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingInformation))
114
else if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingVerbose))
118
else if (Utilities.SafeCompare(levelString,
CommandLineOption
.TracingAll))
Configuration\WsatConfiguration.cs (23)
547
string networkEnabledString = " -" +
CommandLineOption
.Network + ":" +
548
(this.TransactionBridgeEnabled ?
CommandLineOption
.Enable :
CommandLineOption
.Disable);
552
virtualServerString = " -" +
CommandLineOption
.ClusterVirtualServer + ":" + "\"" + VirtualServer + "\"";
557
portString = " -" +
CommandLineOption
.Port + ":" + this.HttpsPort;
558
endpointCertString = this.X509Certificate == null ? "" : " -" +
CommandLineOption
.EndpointCert + ":" + this.X509Certificate.Thumbprint;
559
accountsString = " -" +
CommandLineOption
.Accounts + ":" + BuildAccountsArgument();
560
accountsCertsString = " -" +
CommandLineOption
.AccountsCerts + ":" + BuildAccountsCertsArgument();
561
defaultTimeoutString = " -" +
CommandLineOption
.DefaultTimeout + ":" + this.DefaultTimeout.ToString(CultureInfo.InvariantCulture);
562
traceLevelString = " -" +
CommandLineOption
.TraceLevel + ":" + ((uint)this.TraceLevel).ToString(CultureInfo.InvariantCulture);
563
traceActivityString = " -" +
CommandLineOption
.TraceActivity + ":" + (this.ActivityTracing ?
CommandLineOption
.Enable :
CommandLineOption
.Disable);
564
tracePropString = " -" +
CommandLineOption
.TraceProp + ":" + (this.ActivityPropagation ?
CommandLineOption
.Enable :
CommandLineOption
.Disable);
565
tracePiiString = " -" +
CommandLineOption
.TracePii + ":" + (this.TracePii ?
CommandLineOption
.Enable :
CommandLineOption
.Disable);
566
maxTimeoutString = " -" +
CommandLineOption
.MaxTimeout + ":" + this.MaxTimeout.ToString(CultureInfo.InvariantCulture);
575
arguments += " -" +
CommandLineOption
.ClusterRemoteNode + ":" +
CommandLineOption
.Enable;
580
arguments += " -" +
CommandLineOption
.Restart;