22 instantiations of XxHash3
aspire (8)
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (1)
205var xxHash = new XxHash3();
Documentation\SourceContentFingerprint.cs (1)
36var xxHash = new XxHash3();
NuGet\BundleNuGetService.cs (1)
652var hash = new XxHash3();
NuGet\NuGetClient.cs (1)
1147var hash = new XxHash3();
Projects\AppHostServerClosureSnapshots.cs (3)
271var hash = new XxHash3(); 278var hash = new XxHash3(); 293var hash = new XxHash3();
src\Shared\BackchannelConstants.cs (1)
630var xxHash = new XxHash3();
aspire-tray (1)
src\Aspire.Tray\Common\TrayStartupBootstrap.cs (1)
94var hash = new XxHash3();
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
690var hash = new XxHash3();
Aspire.Hosting (4)
ApplicationModel\AspireStore.cs (1)
53var hash = new XxHash3();
Pipelines\PipelineOutputSnapshotter.cs (1)
132var hash = new XxHash3();
src\Shared\BackchannelConstants.cs (1)
630var xxHash = new XxHash3();
Utils\DotnetSdkVersionProvider.cs (1)
229var hash = new XxHash3();
Aspire.Hosting.Dotnet (1)
DotnetProjectBuildResource.cs (1)
274var hash = new XxHash3();
Aspire.Hosting.Native.Core.Tests (1)
NativeCliControlTests.cs (1)
37var contractHash = new XxHash3();
Aspire.Hosting.Native.Server (1)
src\Shared\BackchannelConstants.cs (1)
630var xxHash = new XxHash3();
Aspire.Hosting.Tests (1)
Pipelines\PipelineOutputSnapshotterTests.cs (1)
84var hash = new XxHash3();
Aspire.Hosting.TestUtilities (1)
Utils\ByteOutputFileHasher.cs (1)
20var hash = new XxHash3();
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (1)
292var xxHash = new XxHash3();
Aspire.Tray.Tests (1)
src\Aspire.Tray\Common\TrayStartupBootstrap.cs (1)
94var hash = new XxHash3();
System.IO.Hashing (1)
System\IO\Hashing\XxHash3.cs (1)
48public XxHash3 Clone() => new(_state);
80 references to XxHash3
aspire (26)
Bundles\BundleService.cs (1)
787var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(currentVersion));
Caching\AppHostInfoDiskCache.cs (1)
374var hash = XxHash3.Hash(bytes);
Configuration\ConfigSourceService.cs (1)
610var key = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes($"{source.Repository}\n{source.Path}\n{source.Ref ?? ""}")).ToString("x16", CultureInfo.InvariantCulture);
Documentation\ApiDocs\ApiMemberMarkdownParser.cs (1)
205var xxHash = new XxHash3();
Documentation\SourceContentFingerprint.cs (1)
36var xxHash = new XxHash3();
NuGet\BundleNuGetService.cs (2)
640return XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(content)).ToString("X16", CultureInfo.InvariantCulture); 652var hash = new XxHash3();
NuGet\NuGetClient.cs (4)
1147var hash = new XxHash3(); 1210private static void AppendSettingItemAttributes(XxHash3 hash, SettingItem item) 1220XxHash3 hash, 1236private static void AppendCacheIdentityValue(XxHash3 hash, string value)
NuGet\TemporaryNuGetConfigFile.cs (1)
123return Convert.ToHexString(XxHash3.Hash(bytes));
Projects\AppHostServerClosureSnapshots.cs (3)
271var hash = new XxHash3(); 278var hash = new XxHash3(); 293var hash = new XxHash3();
Projects\AppHostWorkloadId.cs (1)
40var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(normalizedPath));
Projects\GuestAppHostProject.cs (1)
2481var bytes = System.IO.Hashing.XxHash3.Hash(System.Text.Encoding.UTF8.GetBytes(sb.ToString()));
Projects\IntegrationClosureBuilder.cs (1)
177var hash = XxHash3.Hash(Encoding.UTF8.GetBytes(appHostFullPath));
src\Shared\BackchannelConstants.cs (2)
446var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(value)); 630var xxHash = new XxHash3();
src\Shared\UserSecrets\AspireSecretsPathHelper.cs (1)
172var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(value));
Templating\TemplateEngineFactory.cs (1)
172var key = Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(identity))).ToLowerInvariant();
Utils\CliPathHelper.cs (3)
164var hex = Convert.ToHexString(XxHash3.Hash(bytes)).ToLowerInvariant(); 185/// Hashing the URL with <see cref="XxHash3"/> (non-cryptographic but very high quality) keeps 199var hex = Convert.ToHexString(XxHash3.Hash(bytes)).ToLowerInvariant();
Utils\ConfigurationHelper.cs (1)
121var lockFileName = Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(normalizedSettingsPath))).ToLowerInvariant();
aspire-tray (1)
src\Aspire.Tray\Common\TrayStartupBootstrap.cs (1)
94var hash = new XxHash3();
Aspire.Dashboard (5)
Model\DimensionFilterViewModel.cs (1)
66public string NameHash => _nameHash ??= Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(Name)));
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (2)
690var hash = new XxHash3(); 699static void AppendHashValue(XxHash3 hash, string value)
ServiceClient\DashboardRunStore.cs (1)
722var hash = Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(applicationName))).ToLowerInvariant();
Utils\DashboardApplicationNameKey.cs (1)
41var hash = Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(applicationName))).ToLowerInvariant();
Aspire.Hosting (15)
ApplicationModel\AppHostLocalStateStore.cs (1)
53var identityHash = Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(identity))).ToLowerInvariant();
ApplicationModel\AspireStore.cs (1)
53var hash = new XxHash3();
Pipelines\PipelineOutputSnapshotter.cs (2)
129return XxHash3.Hash(Encoding.UTF8.GetBytes(target)); 132var hash = new XxHash3();
Publishing\ManifestPublishingContext.cs (3)
956var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(expression)).ToString("x16", CultureInfo.InvariantCulture); 1031var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(reference)).ToString("x16", CultureInfo.InvariantCulture); 1278var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(expression)).ToString("x16", CultureInfo.InvariantCulture);
src\Shared\BackchannelConstants.cs (2)
446var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(value)); 630var xxHash = new XxHash3();
src\Shared\ResourceNameHelpers.cs (1)
49XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(name)).ToString("x16", CultureInfo.InvariantCulture);
src\Shared\UserSecrets\AspireSecretsPathHelper.cs (1)
172var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(value));
src\Shared\VolumeMountPathResolver.cs (1)
44return Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(value))).ToLowerInvariant();
Utils\DotnetSdkVersionProvider.cs (3)
192var hash = XxHash3.HashToUInt64(File.ReadAllBytes(globalJsonPath)); 229var hash = new XxHash3(); 244static void AppendHashValue(XxHash3 hash, string value)
Aspire.Hosting.Azure (1)
src\Shared\ResourceNameHelpers.cs (1)
49XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(name)).ToString("x16", CultureInfo.InvariantCulture);
Aspire.Hosting.Azure.ApiManagement (1)
AzureApiManagementExtensions.cs (1)
3168Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(value))).ToLowerInvariant()[..8];
Aspire.Hosting.Azure.ConnectorNamespace (1)
Provisioning\ConnectorNamespaceBicepIdentifiers.cs (1)
53var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(identity))
Aspire.Hosting.Azure.Network (1)
AzureInternalLoadBalancerExtensions.cs (1)
101var hash = Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(name))).ToLowerInvariant()[..8];
Aspire.Hosting.Azure.Sandboxes (3)
AzureSandboxContainerDeployment.cs (3)
856var lockName = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(lockIdentity)).ToString("x16", CultureInfo.InvariantCulture); 1899var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(identity)); 1920var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(identity));
Aspire.Hosting.Docker (1)
src\Shared\ResourceNameHelpers.cs (1)
49XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(name)).ToString("x16", CultureInfo.InvariantCulture);
Aspire.Hosting.Dotnet (1)
DotnetProjectBuildResource.cs (1)
274var hash = new XxHash3();
Aspire.Hosting.Foundry (2)
Toolbox\FoundryToolboxBuilderExtensions.cs (1)
354var hash = XxHash3.Hash(identity);
Toolbox\FoundryToolboxReconciler.cs (1)
158var hash = XxHash3.Hash(stream.GetBuffer().AsSpan(0, checked((int)stream.Length)));
Aspire.Hosting.Foundry.Tests (1)
FoundryToolboxReconcilerTests.cs (1)
371? Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(legacyConfiguration))).ToLowerInvariant()
Aspire.Hosting.Kubernetes (2)
src\Shared\ResourceNameHelpers.cs (1)
49XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(name)).ToString("x16", CultureInfo.InvariantCulture);
src\Shared\VolumeMountPathResolver.cs (1)
44return Convert.ToHexString(XxHash3.Hash(Encoding.UTF8.GetBytes(value))).ToLowerInvariant();
Aspire.Hosting.Native.Core.Tests (1)
NativeCliControlTests.cs (1)
37var contractHash = new XxHash3();
Aspire.Hosting.Native.Server (3)
Rpc\NativeLanguageCatalog.cs (1)
120["contractId"] = Convert.ToHexString(XxHash3.Hash(contents.GetBuffer().AsSpan(0, checked((int)contents.Length)))),
src\Shared\BackchannelConstants.cs (2)
446var hashBytes = XxHash3.Hash(Encoding.UTF8.GetBytes(value)); 630var xxHash = new XxHash3();
Aspire.Hosting.Radius (1)
src\Shared\ResourceNameHelpers.cs (1)
49XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(name)).ToString("x16", CultureInfo.InvariantCulture);
Aspire.Hosting.Rust (1)
RustDockerfileGenerator.cs (1)
387var hash = XxHash3.HashToUInt64(Encoding.UTF8.GetBytes(identity));
Aspire.Hosting.Tests (3)
Pipelines\PipelineOutputDiffingTests.cs (1)
114return XxHash3.Hash(Encoding.UTF8.GetBytes(content.ReplaceLineEndings("\n") + readOnly));
Pipelines\PipelineOutputSnapshotterTests.cs (2)
84var hash = new XxHash3(); 339path => XxHash3.Hash(File.ReadAllBytes(path)).AsSpan(0, length).ToArray(), PipelineOutputRoot.PathComparer);
Aspire.Hosting.TestUtilities (1)
Utils\ByteOutputFileHasher.cs (1)
20var hash = new XxHash3();
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (1)
292var xxHash = new XxHash3();
Aspire.Tray.Tests (1)
src\Aspire.Tray\Common\TrayStartupBootstrap.cs (1)
94var hash = new XxHash3();
Microsoft.NET.Build.Tasks (1)
NugetContentAssetPreprocessor.cs (1)
76return BitConverter.ToString(XxHash3.Hash(stream.GetBuffer().AsSpan(0, (int)stream.Length))).Replace("-", "");
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
BrotliCompress.cs (1)
125var hashString = Convert.ToBase64String(XxHash3.Hash(bytes));
System.IO.Hashing (5)
System\IO\Hashing\XxHash3.cs (4)
29/// <summary>Initializes a new instance of the <see cref="XxHash3"/> class using the default seed value 0.</summary> 34/// <summary>Initializes a new instance of the <see cref="XxHash3"/> class using the specified seed.</summary> 40/// <summary>Initializes a new instance of the <see cref="XxHash3"/> class using the state from another instance.</summary> 48public XxHash3 Clone() => new(_state);
System\IO\Hashing\XxHashShared.cs (1)
18/// <summary>Shared implementation of the XXH3 hash algorithm for 64-bit in <see cref="XxHash3"/> and <see cref="XxHash128"/> version.</summary>