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