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)
103appBuilder.Services.TryAddSingleton<TerminalHostOrphanCleanupService>(); 203var appHostProcessScopeId = TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(); 204var appHostBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 271@event.Services.GetRequiredService<TerminalHostOrphanCleanupService>()
Aspire.Hosting.Tests (17)
WithTerminalTests.cs (17)
532TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(), 535TerminalHostOrphanCleanupService.GetCurrentBootId(), 732DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 788DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 805DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 826DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 891DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 997var currentBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 1031Assert.False(TerminalHostOrphanCleanupService.DeleteReplicaFiles(trmnlDirectory, replicaId, logger: null)); 1049var cleanupService = await SubscribeOrphanCleanupAsync(builder, app); 1120? appHostProcessScopeId ?? TerminalHostOrphanCleanupService.GetCurrentProcessScopeId() 1123? appHostBootId ?? TerminalHostOrphanCleanupService.GetCurrentBootId() 1527var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1531private static async Task<TerminalHostOrphanCleanupService> SubscribeOrphanCleanupAsync( 1535var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>();