25 references to KeySizeInBytes
aspire (5)
NuGet\BundleNuGetService.cs (3)
88= static () => RandomNumberGenerator.GetBytes(NuGetSourceIdentity.KeySizeInBytes); 206if (sourceIdentityKey.Length != NuGetSourceIdentity.KeySizeInBytes) 209$"The NuGet source identity key must be {NuGetSourceIdentity.KeySizeInBytes} bytes.");
Packaging\NuGetSourceIdentity.cs (2)
17if (key.Length != KeySizeInBytes) 19throw new ArgumentException($"The NuGet source identity key must be {KeySizeInBytes} bytes.", nameof(key));
Aspire.Cli.Tests (20)
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (4)
197var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]).Sources; 677var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]).Sources; 1191appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 1261appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\BundleNuGetServiceTests.cs (3)
75var key = new byte[NuGetSourceIdentity.KeySizeInBytes]; 132var previewSnapshot = client.GetSettings(preview.EffectiveWorkingDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 135var persistedSnapshot = client.GetSettings(appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\NuGetClientTests.cs (6)
253var snapshot = client.GetSettings(workspace.WorkspaceRoot.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 1436Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.KeySizeInBytes).ToArray()); 1472new byte[NuGetSourceIdentity.KeySizeInBytes]); 1502Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.KeySizeInBytes).ToArray()); 1519var sourceIdentityKey = Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.KeySizeInBytes).ToArray(); 1590var settings = client.GetSettings(overlayDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\NuGetConfigurationTests.cs (1)
222=> new([], "ambient", [], [], mappings, [], [], new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\NuGetTestHelperTests.cs (2)
19var snapshot = client.GetSettings(workspace.Path, new byte[NuGetSourceIdentity.KeySizeInBytes]); 65var snapshot = client.GetSettings(appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
Packaging\PackageSourceIdentityTests.cs (2)
35new byte[NuGetSourceIdentity.KeySizeInBytes]); 60new byte[NuGetSourceIdentity.KeySizeInBytes]);
Projects\PrebuiltAppHostServerTests.cs (1)
32private static readonly byte[] s_sourceIdentityKey = new byte[NuGetSourceIdentity.KeySizeInBytes];
TestServices\NuGetTestHelper.cs (1)
90var settings = new NuGetSettingsInfo([], "standalone", [], [], [], [], [], new byte[NuGetSourceIdentity.KeySizeInBytes]);