3 instantiations of AppHostInfoCacheEntry
aspire (1)
Projects\AppHostInfoResolver.cs (1)
169
await diskCache.SetAsync(projectFile, expectedCacheKey, new
AppHostInfoCacheEntry
Aspire.Cli.Tests (2)
Caching\AppHostInfoDiskCacheTests.cs (1)
41
private static AppHostInfoCacheEntry SampleEntry() =>
new
()
Projects\AppHostInfoResolverTests.cs (1)
25
Entry = new
AppHostInfoCacheEntry
36 references to AppHostInfoCacheEntry
aspire (8)
Caching\AppHostInfoDiskCache.cs (6)
105
private static JsonTypeInfo<
AppHostInfoCacheEntry
> EntryTypeInfo =>
121
public async Task<
AppHostInfoCacheEntry
?> TryGetAsync(FileInfo projectFile, CancellationToken cancellationToken)
147
var
entry = JsonSerializer.Deserialize(json, EntryTypeInfo);
176
public async Task SetAsync(FileInfo projectFile, string expectedCacheKey,
AppHostInfoCacheEntry
entry, CancellationToken cancellationToken)
410
Task<
AppHostInfoCacheEntry
?> TryGetAsync(FileInfo projectFile, CancellationToken cancellationToken);
411
Task SetAsync(FileInfo projectFile, string expectedCacheKey,
AppHostInfoCacheEntry
entry, CancellationToken cancellationToken);
JsonSourceGenerationContext.cs (1)
59
[JsonSerializable(typeof(
AppHostInfoCacheEntry
))]
Projects\AppHostInfoResolver.cs (1)
98
var
diskEntry = await diskCache.TryGetAsync(projectFile, cancellationToken).ConfigureAwait(false);
Aspire.Cli.Tests (28)
Caching\AppHostInfoDiskCacheTests.cs (22)
41
private static
AppHostInfoCacheEntry
SampleEntry() => new()
69
var
miss = await cache.TryGetAsync(projectFile, CancellationToken.None).DefaultTimeout();
76
var
hit = await cache.TryGetAsync(freshProject, CancellationToken.None).DefaultTimeout();
97
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
156
var
hit = await cache.TryGetAsync(freshProject, CancellationToken.None).DefaultTimeout();
174
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
191
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
208
var
hit = await cache.TryGetAsync(projectFile, CancellationToken.None).DefaultTimeout();
227
var
hit = await cache.TryGetAsync(projectFile, CancellationToken.None).DefaultTimeout();
241
var
entry = SampleEntry() with
252
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
272
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
311
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
332
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
380
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
460
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
500
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
520
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
577
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
616
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
637
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
662
var
hit = await cache.TryGetAsync(new FileInfo(projectFile.FullName), CancellationToken.None).DefaultTimeout();
Projects\AppHostInfoResolverTests.cs (3)
233
public
AppHostInfoCacheEntry
? Entry { get; init; }
238
public Task<
AppHostInfoCacheEntry
?> TryGetAsync(FileInfo projectFile, CancellationToken cancellationToken)
241
public Task SetAsync(FileInfo projectFile, string expectedCacheKey,
AppHostInfoCacheEntry
entry, CancellationToken cancellationToken)
TestServices\NullDiskCache.cs (3)
32
public Task<
AppHostInfoCacheEntry
?> TryGetAsync(FileInfo projectFile, CancellationToken cancellationToken)
33
=> Task.FromResult<
AppHostInfoCacheEntry
?>(null);
35
public Task SetAsync(FileInfo projectFile, string expectedCacheKey,
AppHostInfoCacheEntry
entry, CancellationToken cancellationToken)