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