2 instantiations of AppHostInfoDiskCache
Aspire.Cli.Tests (2)
Caching\AppHostInfoDiskCacheTests.cs (2)
20
return new
AppHostInfoDiskCache
(NullLogger<AppHostInfoDiskCache>.Instance, ctx, configurationService ?? new TestConfigurationService(), new TestEnvironment());
31
return new
AppHostInfoDiskCache
(NullLogger<AppHostInfoDiskCache>.Instance, ctx, configurationService, new TestEnvironment());
40 references to AppHostInfoDiskCache
aspire (3)
Caching\AppHostInfoDiskCache.cs (2)
108
private readonly ILogger<
AppHostInfoDiskCache
> _logger;
113
public AppHostInfoDiskCache(ILogger<
AppHostInfoDiskCache
> logger, CliExecutionContext executionContext, IConfigurationService configurationService, IEnvironment environment)
Program.cs (1)
471
builder.Services.AddSingleton<IAppHostInfoDiskCache,
AppHostInfoDiskCache
>();
Aspire.Cli.Tests (37)
Caching\AppHostInfoDiskCacheTests.cs (37)
17
private static
AppHostInfoDiskCache
CreateCache(TemporaryWorkspace workspace, IConfigurationService? configurationService = null)
20
return new AppHostInfoDiskCache(NullLogger<
AppHostInfoDiskCache
>.Instance, ctx, configurationService ?? new TestConfigurationService(), new TestEnvironment());
23
private static
AppHostInfoDiskCache
CreateCacheWithRealConfigurationService(TemporaryWorkspace workspace, Dictionary<string, string?>? processConfigurationValues = null)
31
return new AppHostInfoDiskCache(NullLogger<
AppHostInfoDiskCache
>.Instance, ctx, configurationService, new TestEnvironment());
66
var
cache = CreateCache(workspace);
92
var
cache = CreateCache(workspace);
106
var
cache = CreateCache(workspace);
145
var
cache = CreateCache(workspace);
164
var
cache = CreateCache(workspace);
182
var
cache = CreateCache(workspace);
204
var
cache = CreateCacheWithRealConfigurationService(workspace);
220
var
cache = CreateCacheWithRealConfigurationService(workspace, new Dictionary<string, string?>
236
var
cache = CreateCache(workspace);
262
var
cache = CreateCache(workspace);
280
var
cache = CreateCache(workspace);
319
var
cache = CreateCache(workspace);
343
var
cache = CreateCache(workspace);
388
var
cache = CreateCache(workspace);
421
var
cache = CreateCache(workspace);
441
var
cache = CreateCache(workspace);
470
var
cache = CreateCache(workspace);
508
var
cache = CreateCache(workspace);
530
var
cache = CreateCache(workspace);
548
var
cache = CreateCache(workspace);
585
var
cache = CreateCache(workspace);
624
var
cache = CreateCache(workspace);
647
var
cache = CreateCache(workspace);
672
var key1 =
AppHostInfoDiskCache
.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment());
673
var key2 =
AppHostInfoDiskCache
.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment());
685
var keyA =
AppHostInfoDiskCache
.ComputeKeyAsync(projectA, new TestEnvironment());
686
var keyB =
AppHostInfoDiskCache
.ComputeKeyAsync(projectB, new TestEnvironment());
711
var keyLower =
AppHostInfoDiskCache
.ComputeKeyAsync(new FileInfo(lowerPath), new TestEnvironment());
712
var keyUpper =
AppHostInfoDiskCache
.ComputeKeyAsync(new FileInfo(upperDrivePath), new TestEnvironment());
731
var keyBeforeImport =
AppHostInfoDiskCache
.ComputeKeyAsync(projectFile, new TestEnvironment());
733
var keyAfterImport =
AppHostInfoDiskCache
.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment());
755
var keyBeforeParentImportEdit =
AppHostInfoDiskCache
.ComputeKeyAsync(projectFile, new TestEnvironment());
760
var keyAfterParentImportEdit =
AppHostInfoDiskCache
.ComputeKeyAsync(new FileInfo(projectFile.FullName), new TestEnvironment());