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)
97appBuilder.Services.TryAddSingleton<TerminalHostOrphanCleanupService>(); 196var appHostProcessScopeId = TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(); 197var appHostBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 264@event.Services.GetRequiredService<TerminalHostOrphanCleanupService>()
Aspire.Hosting.Tests (17)
WithTerminalTests.cs (17)
470TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(), 473TerminalHostOrphanCleanupService.GetCurrentBootId(), 670DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 726DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 743DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 764DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 829DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 935var currentBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 969Assert.False(TerminalHostOrphanCleanupService.DeleteReplicaFiles(trmnlDirectory, replicaId, logger: null)); 987var cleanupService = await SubscribeOrphanCleanupAsync(builder, app); 1058? appHostProcessScopeId ?? TerminalHostOrphanCleanupService.GetCurrentProcessScopeId() 1061? appHostBootId ?? TerminalHostOrphanCleanupService.GetCurrentBootId() 1454var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1458private static async Task<TerminalHostOrphanCleanupService> SubscribeOrphanCleanupAsync( 1462var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>();