4 instantiations of PrivateTemporaryStorage
aspire (1)
Program.cs (1)
401builder.Services.AddSingleton<Aspire.Shared.ITemporaryStorage>(sp => new Aspire.Shared.PrivateTemporaryStorage(
Aspire.Cli.Tests (3)
Certificates\MacOSCertificateManagerTests.cs (1)
45using var storage = new PrivateTemporaryStorage(home, new ConfigurationBuilder().Build());
Utils\DcpConnectionLifetimeTests.cs (1)
65using var storage = new PrivateTemporaryStorage(Path.Combine(workspace.Path, ".aspire"), new ConfigurationBuilder().Build());
Utils\TemporaryStorageTests.cs (1)
213return new PrivateTemporaryStorage(home, configuration);
18 references to PrivateTemporaryStorage
Aspire.Cli.Tests (18)
Certificates\MacOSCertificateManagerTests.cs (1)
45using var storage = new PrivateTemporaryStorage(home, new ConfigurationBuilder().Build());
CliBootstrapTests.cs (1)
79Assert.IsType<PrivateTemporaryStorage>(storage);
Utils\DcpConnectionLifetimeTests.cs (1)
65using var storage = new PrivateTemporaryStorage(Path.Combine(workspace.Path, ".aspire"), new ConfigurationBuilder().Build());
Utils\TemporaryStorageTests.cs (15)
18using var storage = CreateStorage(home); 53using var first = CreateStorage(home); 54using var second = CreateStorage(home); 69using var storage = CreateStorage(Path.Combine(workspace.Path, ".aspire"), value); 79using var storage = CreateStorage(Path.Combine(workspace.Path, ".aspire")); 86Assert.Throws<IOException>(() => PrivateTemporaryStorage.GetRoot(".aspire")); 89using var storage = CreateStorage(home); 114using var storage = CreateStorage(home.FullName); 145var root = new DirectoryInfo(PrivateTemporaryStorage.GetRoot(home)); 149using var storage = CreateStorage(home); 171using var storage = CreateStorage(home.FullName); 189var root = PrivateTemporaryStorage.GetRoot(home); 192Assert.Throws<IOException>(() => PrivateTemporaryStorage.GetRoot(home)); 198Assert.Throws<IOException>(() => PrivateTemporaryStorage.GetRoot(home)); 206private static PrivateTemporaryStorage CreateStorage(string home, string? preserve = null)