Implemented interface member:
method
GetTempPath
Aspire.Shared.ITemporaryStorage.GetTempPath()
16 references to GetTempPath
aspire (2)
src\Shared\PrivateTemporaryStorage.cs (2)
33var path = Path.Combine(GetTempPath(), Path.GetRandomFileName()); 47return CreatePrivateDirectory(Path.Combine(GetTempPath(), prefix + Path.GetRandomFileName()));
Aspire.Cli.Tests (14)
Certificates\MacOSCertificateManagerTests.cs (1)
57Assert.StartsWith(storage.GetTempPath(), arguments[7], StringComparison.Ordinal);
Utils\DcpConnectionLifetimeTests.cs (1)
99Assert.Equal(Path.TrimEndingDirectorySeparator(storage.GetTempPath()), Path.GetDirectoryName(sessionDirectory));
Utils\TemporaryStorageTests.cs (12)
21var session = Path.TrimEndingDirectorySeparator(storage.GetTempPath()); 45Assert.Throws<ObjectDisposedException>(storage.GetTempPath); 55Assert.NotEqual(first.GetTempPath(), second.GetTempPath()); 56Assert.Equal(first.GetTempPath(), first.GetTempPath()); 70Assert.Equal(expected, File.Exists(Path.Combine(storage.GetTempPath(), ".preserve"))); 90Assert.Throws<IOException>(storage.GetTempPath); 118Assert.Throws<IOException>(storage.GetTempPath); 122Assert.Equal(Path.Combine(home.FullName, "tmp"), Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(storage.GetTempPath()))); 151Assert.Equal(root.FullName, Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(storage.GetTempPath()))); 172var session = Path.TrimEndingDirectorySeparator(storage.GetTempPath());