33 references to KeySizeInBytes
aspire (5)
NuGet\BundleNuGetService.cs (3)
92= static () => RandomNumberGenerator.GetBytes(NuGetSourceIdentity.KeySizeInBytes); 218if (sourceIdentityKey.Length != NuGetSourceIdentity.KeySizeInBytes) 221$"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 (28)
DotNet\DotNetAppHostNuGetConfigMergerTests.cs (6)
703var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]).Sources; 1240var sources = NuGetTestHelper.CreateClient().GetSettings(root.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]).Sources; 1864directory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]).DisabledPackageSourceKeys); 2008directory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 2062appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 2134appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\BundleNuGetServiceTests.cs (5)
83var previewSettings = client.GetSettings(preview.EffectiveWorkingDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 96var persisted = client.GetSettings(app.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 256var key = new byte[NuGetSourceIdentity.KeySizeInBytes]; 317var previewSnapshot = client.GetSettings(preview.EffectiveWorkingDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 320var persistedSnapshot = client.GetSettings(appHostDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\NuGetClientTests.cs (6)
418var snapshot = client.GetSettings(workspace.WorkspaceRoot.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]); 1603Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.KeySizeInBytes).ToArray()); 1639new byte[NuGetSourceIdentity.KeySizeInBytes]); 1669Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.KeySizeInBytes).ToArray()); 1686var sourceIdentityKey = Enumerable.Repeat((byte)0x5A, NuGetSourceIdentity.KeySizeInBytes).ToArray(); 1757var settings = client.GetSettings(overlayDirectory.FullName, new byte[NuGetSourceIdentity.KeySizeInBytes]);
NuGet\NuGetConfigurationTests.cs (1)
650=> 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 (6)
28workspace.Path, new byte[NuGetSourceIdentity.KeySizeInBytes]); 53workspace.Path, new byte[NuGetSourceIdentity.KeySizeInBytes]); 75workspace.Path, new byte[NuGetSourceIdentity.KeySizeInBytes]); 93workspace.Path, new byte[NuGetSourceIdentity.KeySizeInBytes]); 125new byte[NuGetSourceIdentity.KeySizeInBytes]); 150new byte[NuGetSourceIdentity.KeySizeInBytes]);
Projects\PrebuiltAppHostServerTests.cs (1)
32private static readonly byte[] s_sourceIdentityKey = new byte[NuGetSourceIdentity.KeySizeInBytes];
TestServices\NuGetTestHelper.cs (1)
93var settings = new NuGetSettingsInfo([], "standalone", [], [], [], [], [], new byte[NuGetSourceIdentity.KeySizeInBytes]);