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