24 references to TerminalHostOrphanCleanupService
Aspire.Hosting (7)
Lifecycle\TerminalHostOrphanCleanupService.cs (3)
20private readonly ILogger<TerminalHostOrphanCleanupService> _logger; 26ILogger<TerminalHostOrphanCleanupService> logger, 512TerminalHostOrphanCleanupService cleanupService) : IDistributedApplicationEventingSubscriber
TerminalResourceBuilderExtensions.cs (4)
98appBuilder.Services.TryAddSingleton<TerminalHostOrphanCleanupService>(); 213var appHostProcessScopeId = TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(); 214var appHostBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 295@event.Services.GetRequiredService<TerminalHostOrphanCleanupService>()
Aspire.Hosting.Tests (17)
WithTerminalTests.cs (17)
393TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(), 396TerminalHostOrphanCleanupService.GetCurrentBootId(), 591DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 647DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 664DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 685DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 750DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 856var currentBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 890Assert.False(TerminalHostOrphanCleanupService.DeleteReplicaFiles(trmnlDirectory, replicaId, logger: null)); 908var cleanupService = await SubscribeOrphanCleanupAsync(builder, app); 979? appHostProcessScopeId ?? TerminalHostOrphanCleanupService.GetCurrentProcessScopeId() 982? appHostBootId ?? TerminalHostOrphanCleanupService.GetCurrentBootId() 1333var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1337private static async Task<TerminalHostOrphanCleanupService> SubscribeOrphanCleanupAsync( 1341var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>();