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)
99appBuilder.Services.TryAddSingleton<TerminalHostOrphanCleanupService>(); 208var appHostProcessScopeId = TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(); 209var appHostBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 276@event.Services.GetRequiredService<TerminalHostOrphanCleanupService>()
Aspire.Hosting.Tests (17)
WithTerminalTests.cs (17)
442TerminalHostOrphanCleanupService.GetCurrentProcessScopeId(), 445TerminalHostOrphanCleanupService.GetCurrentBootId(), 640DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 696DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 713DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 734DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 799DateTime.UtcNow - TerminalHostOrphanCleanupService.InvalidMetadataRetentionPeriod - TimeSpan.FromMinutes(1)); 905var currentBootId = TerminalHostOrphanCleanupService.GetCurrentBootId(); 939Assert.False(TerminalHostOrphanCleanupService.DeleteReplicaFiles(trmnlDirectory, replicaId, logger: null)); 957var cleanupService = await SubscribeOrphanCleanupAsync(builder, app); 1028? appHostProcessScopeId ?? TerminalHostOrphanCleanupService.GetCurrentProcessScopeId() 1031? appHostBootId ?? TerminalHostOrphanCleanupService.GetCurrentBootId() 1382var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>(); 1386private static async Task<TerminalHostOrphanCleanupService> SubscribeOrphanCleanupAsync( 1390var cleanupService = app.Services.GetRequiredService<TerminalHostOrphanCleanupService>();