23 references to HashWithNormalizedCasing
dotnet (8)
CommandFactory\CommandResolution\CompositeCommandResolver.cs (1)
43
{ "commandName", commandResolverArguments is null ? string.Empty : Sha256Hasher.
HashWithNormalizedCasing
(commandResolverArguments.CommandName) },
Commands\Hidden\InternalReportInstallSuccess\InternalReportInstallSuccessCommand.cs (1)
36
var filter = new TelemetryFilter(Sha256Hasher.
HashWithNormalizedCasing
);
Commands\MSBuild\MSBuildLogger.cs (1)
260
properties[propertyToBeHashed] = Sha256Hasher.
HashWithNormalizedCasing
(value!);
Commands\New\MSBuildEvaluation\MSBuildEvaluator.cs (3)
191
targetFrameworksString = string.Join(",", targetFrameworks.Select(tfm => Sha256Hasher.
HashWithNormalizedCasing
(tfm)));
195
targetFrameworksString = Sha256Hasher.
HashWithNormalizedCasing
(targetFramework);
200
{ "ProjectPath", Sha256Hasher.
HashWithNormalizedCasing
(projectPath)},
Commands\Run\VirtualProjectBuildingCommand.cs (1)
1093
string hash = Sha256Hasher.
HashWithNormalizedCasing
(entryPointFileFullPath);
Program.cs (1)
157
TelemetryEventEntry.TelemetryFilter = new TelemetryFilter(Sha256Hasher.
HashWithNormalizedCasing
);
dotnet.Tests (3)
TelemetryCommandTest.cs (1)
25
TelemetryEventEntry.TelemetryFilter = new TelemetryFilter(Sha256Hasher.
HashWithNormalizedCasing
);
TelemetryFilterTest.cs (2)
27
TelemetryEventEntry.TelemetryFilter = new TelemetryFilter(Sha256Hasher.
HashWithNormalizedCasing
);
64
e.Properties["globalJson"] == Sha256Hasher.
HashWithNormalizedCasing
(globalJsonState));
Microsoft.NET.Build.Tests (1)
GivenThatWeWantToBuildANetCoreAppForTelemetry.cs (1)
33
return $"{{\"EventName\":\"targetframeworkeval\",\"Properties\":{{\"TargetFrameworkVersion\":\"{targetFrameworkVersion}\",\"RuntimeIdentifier\":\"{runtimeIdentifier}\",\"SelfContained\":\"{selfContained}\",\"UseApphost\":\"{useApphost}\",\"OutputType\":\"{outputType}\",\"UseArtifactsOutput\":\"{useArtifactsOutput}\",\"ArtifactsPathLocationType\":\"{artifactsPathLocationType}\",\"TargetPlatformIdentifier\":\"{targetPlatformIdentifier}\",\"UseMonoRuntime\":\"{useMonoRuntime}\",\"PublishAot\":\"{publishAot}\",\"PublishTrimmed\":\"{publishTrimmed}\",\"PublishSelfContained\":\"{publishSelfContained}\",\"PublishReadyToRun\":\"{publishReadyToRun}\",\"PublishReadyToRunComposite\":\"{publishReadyToRunComposite}\",\"PublishProtocol\":\"{publishProtocol}\",\"Configuration\":\"{Sha256Hasher.
HashWithNormalizedCasing
(configuration)}\"}}";
Microsoft.TemplateEngine.Cli (5)
TelemetryHelper.cs (1)
41
hashedValues.Add(Sha256Hasher.
HashWithNormalizedCasing
(choiceValue));
TemplateInvoker.cs (4)
50
string? templateName = Sha256Hasher.
HashWithNormalizedCasing
(templateToRun.Identity);
51
string? templateShortNames = templateToRun.ShortNameList.Any() ? Sha256Hasher.
HashWithNormalizedCasing
(string.Join(',', templateToRun.ShortNameList)) : null;
55
string? packageName = string.IsNullOrEmpty(templatePackage?.Identifier) ? null : Sha256Hasher.
HashWithNormalizedCasing
(templatePackage.Identifier);
56
string? packageVersion = string.IsNullOrEmpty(templatePackage?.Version) ? null : Sha256Hasher.
HashWithNormalizedCasing
(templatePackage.Version);
Microsoft.TemplateEngine.Cli.UnitTests (6)
TelemetryHelperTests.cs (6)
96
Assert.Equal(Sha256Hasher.
HashWithNormalizedCasing
("foo"), telemetryEntry);
170
Assert.Equal(Sha256Hasher.
HashWithNormalizedCasing
("FOO"), telemetryEntry);
222
Assert.Equal(Sha256Hasher.
HashWithNormalizedCasing
("foo") + ";" + Sha256Hasher.
HashWithNormalizedCasing
("bar"), telemetryEntry);
248
Assert.Equal(Sha256Hasher.
HashWithNormalizedCasing
("foo") + ";" + Sha256Hasher.
HashWithNormalizedCasing
("bar"), telemetryEntry);