83 references to Utilities
WsatConfig (83)
CommandLine\ArgumentsParser.cs (13)
151
if (
Utilities
.SafeCompare(value, CommandLineOption.Enable))
157
else if (
Utilities
.SafeCompare(value, CommandLineOption.Disable))
229
bool parsedCorrectly =
Utilities
.ParseSourceLevel(value, out level);
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))
397
if (
Utilities
.IsCriticalException(e))
414
if (
Utilities
.SafeCompare(value, CommandLineOption.Enable))
419
else if (
Utilities
.SafeCompare(value, CommandLineOption.Disable))
CommandLine\ConsoleEntryPoint.cs (7)
146
if (
Utilities
.IsCriticalException(e))
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))
Configuration\CertificateManager.cs (6)
29
if (
Utilities
.IsLocalMachineName(machineName))
150
if (
Utilities
.SafeCompare(subjectName, "{EMPTY}"))
166
if (!
Utilities
.SafeCompare(issuer, "*"))
170
if (certs.Count > 0 && !
Utilities
.SafeCompare(subjectName, "*"))
235
if (
Utilities
.SafeCompare(cert.Thumbprint, thumbprint))
271
if (
Utilities
.SafeCompare(cert.GetNameInfo(X509NameType.DnsName, false), hostName))
Configuration\ClusterRegistryConfigurationProvider.cs (2)
118
Utilities
.Log("ClusterRegQueryValue [" + name + "], returned [" + ret + "]");
347
if (
Utilities
.IsCriticalException(e))
Configuration\FirewallWrapper.cs (1)
106
if (port.Port == portToRemove &&
Utilities
.SafeCompare(port.Name, SR.GetString(SR.HTTPSPortName)))
Configuration\MsdtcClusterUtils.cs (8)
26
SafeHCluster hCluster = SafeNativeMethods.OpenCluster(
Utilities
.IsLocalMachineName(machineName) ? null : machineName);
100
if (
Utilities
.OSMajor <= 5)
102
if (
Utilities
.IsLocalMachineName(virtualServerName))
128
Utilities
.Log("Resource network name: " + networkName);
129
if (
Utilities
.SafeCompare(networkName, virtualServerName))
179
Utilities
.Log("Entered IsTransactionManager - ");
182
Utilities
.Log("Resource type name: " + resourceType);
280
Utilities
.Log("Found a node: [" + sb.ToString() + "]");
Configuration\MsdtcWrapper.cs (6)
42
return
Utilities
.IsLocalMachineName(machineName) ?
Utilities
.LocalHostName : machineName;
45
return
Utilities
.IsLocalMachineName(machineName) ? string.Empty : machineName;
106
Utilities
.Log("Unable to query IDtcNetworkAccessConfig" + hr);
108
if (
Utilities
.IsLocalMachineName(machineName))
122
if (
Utilities
.GetOSMajor(machineName) > 5 && MsdtcClusterUtils.IsClusterServer(machineName))
Configuration\RegistryExceptionHelper.cs (1)
38
string registryBase =
Utilities
.IsLocalMachineName(machineName) ? string.Empty : SR.GetString(SR.RemoteRegistryFormat, machineName);
Configuration\RemoteHelper.cs (3)
63
Utilities
.Log("ExecuteWsatProcess(" + arguments + ")");
116
if (
Utilities
.IsCriticalException(e))
135
Utilities
.Log("ExecuteWSATProcess successfully quitted.");
Configuration\StdRegProviderWrapper.cs (5)
83
if (
Utilities
.IsLocalMachineName(machineName))
184
if (
Utilities
.IsCriticalException(e))
223
if (
Utilities
.IsCriticalException(e))
255
if (
Utilities
.IsCriticalException(e))
278
if (
Utilities
.IsCriticalException(e))
Configuration\Utilities.cs (8)
73
if (
Utilities
.IsCriticalException(ex))
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 (19)
264
ValidateIdentityCertificateThrow(this.X509Certificate, !
Utilities
.IsLocalMachineName(MachineName));
304
if (
Utilities
.OSMajor > 5)
326
TransactionBridgeEnabled =
Utilities
.SafeCompare(value, TransactionBridgeRegistryValue);
328
TransactionBridge30Enabled =
Utilities
.SafeCompare(value, TransactionBridge30RegistryValue);
348
get { return !IsClustered &&
Utilities
.IsLocalMachineName(this.MachineName); }
433
if (
Utilities
.SafeCompare(node,
Utilities
.LocalHostName))
463
if (
Utilities
.IsCriticalException(e))
476
Utilities
.Log("Save - LocalMachine");
490
Utilities
.Log("Save - Cluster Remote Node");
502
Utilities
.Log("Save - Cluster");
515
Utilities
.Log("Save - Remote");
583
Utilities
.Log("Remote command arguments: " + arguments);
689
if (
Utilities
.IsCriticalException(e))
729
if (
Utilities
.IsCriticalException(e))
861
sb.Append(SR.GetString(SR.ConfigNetworkSupport,
Utilities
.GetEnabledStatusString(this.TransactionBridgeEnabled || this.TransactionBridge30Enabled)));
913
sb.Append(SR.GetString(SR.ConfigActivityTracing,
Utilities
.GetEnabledStatusString(this.ActivityTracing)));
914
sb.Append(SR.GetString(SR.ConfigActivityProp,
Utilities
.GetEnabledStatusString(this.ActivityPropagation)));
915
sb.Append(SR.GetString(SR.ConfigPiiTracing,
Utilities
.GetEnabledStatusString(this.TracePii)));
Configuration\WsatServiceAddress.cs (2)
27
if (
Utilities
.IsHttpApiLibAvailable)
35
if (
Utilities
.IsHttpApiLibAvailable)
Configuration\WsatServiceCertificate.cs (2)
27
if (
Utilities
.IsHttpApiLibAvailable)
35
if (
Utilities
.IsHttpApiLibAvailable)