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>(); 185var appHostProcessScopeId = TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(); 186var appHostBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 253@event.Services.GetRequiredService<TerminalHostOrphanCleanupService>()
Aspire.Hosting.Tests (17)
WithTerminalTests.cs (17)
544TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(), 547TerminalHostOrphanCleanupService.GetCurrentBootId(), 744DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 800DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 817DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 838DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 903DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 1009var currentBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 1043Assert.False(TerminalHostOrphanCleanupService.DeleteReplicaFiles(trmnlDirectory, replicaId, logger: null)); 1061var cleanupService = await SubscribeOrphanCleanupAsync(builder, app); 1132? appHostProcessScopeId ?? TerminalHostOrphanCleanupService.GetCurrentProcessScopeId() 1135? appHostBootId ?? TerminalHostOrphanCleanupService.GetCurrentBootId() 1541var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1545private static async Task<TerminalHostOrphanCleanupService> SubscribeOrphanCleanupAsync( 1549var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>();