12 instantiations of ResourceLoggerService
Aspire.Hosting (1)
ApplicationModel\ResourceNotificationService.cs (1)
47_resourceLoggerService = new ResourceLoggerService();
Aspire.Hosting.Testing.Tests (2)
ResourceLoggerForwarderServiceTests.cs (1)
33var resourceLoggerService = new ResourceLoggerService();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (1)
51return new ResourceLoggerService
Aspire.Hosting.Tests (9)
Dashboard\DashboardLifecycleHookTests.cs (2)
42var resourceLoggerService = new ResourceLoggerService(); 83var resourceLoggerService = new ResourceLoggerService();
Dashboard\DashboardServiceTests.cs (2)
31var resourceLoggerService = new ResourceLoggerService(); 83var resourceLoggerService = new ResourceLoggerService();
Dcp\ApplicationExecutorTests.cs (3)
459var resourceLoggerService = new ResourceLoggerService(); 557var resourceLoggerService = new ResourceLoggerService(); 1068resourceLoggerService ??= new ResourceLoggerService();
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (1)
51return new ResourceLoggerService
Utils\ResourceNotificationServiceTestHelpers.cs (1)
18resourceLoggerService ?? new ResourceLoggerService()
56 references to ResourceLoggerService
Aspire.Hosting (13)
ApplicationModel\ResourceNotificationService.cs (4)
24private readonly ResourceLoggerService _resourceLoggerService; 38{nameof(ResourceNotificationService)} now requires an {nameof(IServiceProvider)} and {nameof(ResourceLoggerService)}. 39Use the constructor that accepts an {nameof(ILogger)}<{nameof(ResourceNotificationService)}>, {nameof(IHostApplicationLifetime)}, {nameof(IServiceProvider)} and {nameof(ResourceLoggerService)}. 57public ResourceNotificationService(ILogger<ResourceNotificationService> logger, IHostApplicationLifetime hostApplicationLifetime, IServiceProvider serviceProvider, ResourceLoggerService resourceLoggerService)
Dashboard\DashboardLifecycleHook.cs (2)
31ResourceLoggerService resourceLoggerService, 343ResourceLoggerService resourceLoggerService,
Dashboard\DashboardServiceData.cs (2)
19private readonly ResourceLoggerService _resourceLoggerService; 23ResourceLoggerService resourceLoggerService,
Dashboard\DashboardServiceHost.cs (1)
57ResourceLoggerService resourceLoggerService)
Dcp\ApplicationExecutor.cs (1)
79ResourceLoggerService loggerService,
DistributedApplicationBuilder.cs (1)
207_innerBuilder.Services.AddSingleton<ResourceLoggerService>();
ParameterResourceBuilderExtensions.cs (2)
187sp.GetRequiredService<ResourceLoggerService>(), 199private sealed class WriteParameterLogsHook(ResourceLoggerService loggerService, string resourceName, string message) : IDistributedApplicationLifecycleHook
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (1)
38ResourceLoggerService loggerService,
Provisioning\Provisioners\BicepProvisioner.cs (1)
24ResourceLoggerService loggerService) : AzureResourceProvisioner<AzureBicepResource>
Aspire.Hosting.Containers.Tests (1)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
17ResourceLoggerService resourceLoggerService,
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
193var rls = e.Services.GetRequiredService<ResourceLoggerService>();
Aspire.Hosting.Testing (1)
ResourceLoggerForwarderService.cs (1)
17ResourceLoggerService resourceLoggerService,
Aspire.Hosting.Testing.Tests (8)
ResourceLoggerForwarderServiceTests.cs (3)
33var resourceLoggerService = new ResourceLoggerService(); 54var resourceLoggerService = ConsoleLoggingTestHelpers.GetResourceLoggerService(); 127private static ResourceNotificationService CreateResourceNotificationService(TestHostApplicationLifetime hostApplicationLifetime, ResourceLoggerService resourceLoggerService)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (3)
115var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 151private static async Task WatchResourceLogs(TaskCompletionSource tcs, string resourceId, Predicate<string> predicate, ResourceLoggerService resourceLoggerService, CancellationTokenSource cancellationTokenSource)
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
8public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(ResourceLoggerService service, int targetLogCount, IResource resource) 49public static ResourceLoggerService GetResourceLoggerService()
Aspire.Hosting.Tests (23)
Dashboard\DashboardLifecycleHookTests.cs (3)
42var resourceLoggerService = new ResourceLoggerService(); 83var resourceLoggerService = new ResourceLoggerService(); 101ResourceLoggerService resourceLoggerService,
Dashboard\DashboardResourceTests.cs (2)
445var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>();
Dashboard\DashboardServiceTests.cs (2)
31var resourceLoggerService = new ResourceLoggerService(); 83var resourceLoggerService = new ResourceLoggerService();
Dcp\ApplicationExecutorTests.cs (3)
459var resourceLoggerService = new ResourceLoggerService(); 557var resourceLoggerService = new ResourceLoggerService(); 1050ResourceLoggerService? resourceLoggerService = null,
ResourceLoggerServiceTests.cs (6)
17var service = ConsoleLoggingTestHelpers.GetResourceLoggerService(); 60var service = ConsoleLoggingTestHelpers.GetResourceLoggerService(); 99var service = ConsoleLoggingTestHelpers.GetResourceLoggerService(); 152var service = ConsoleLoggingTestHelpers.GetResourceLoggerService(); 219var service = ConsoleLoggingTestHelpers.GetResourceLoggerService(); 259private static Task WatchForSubscribers(ResourceLoggerService service)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
17ResourceLoggerService resourceLoggerService,
tests\Shared\ConsoleLogging\ConsoleLoggingTestHelpers.cs (2)
8public static Task<IReadOnlyList<LogLine>> WatchForLogsAsync(ResourceLoggerService service, int targetLogCount, IResource resource) 49public static ResourceLoggerService GetResourceLoggerService()
Utils\LoggerNotificationExtensions.cs (3)
115var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 151private static async Task WatchResourceLogs(TaskCompletionSource tcs, string resourceId, Predicate<string> predicate, ResourceLoggerService resourceLoggerService, CancellationTokenSource cancellationTokenSource)
Utils\ResourceNotificationServiceTestHelpers.cs (1)
12internal static ResourceNotificationService Create(ILogger<ResourceNotificationService>? logger = null, IHostApplicationLifetime? hostApplicationLifetime = null, ResourceLoggerService? resourceLoggerService = null)
Aspire.Playground.Tests (3)
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (3)
115var resourceLoggerService = app.Services.GetRequiredService<ResourceLoggerService>(); 151private static async Task WatchResourceLogs(TaskCompletionSource tcs, string resourceId, Predicate<string> predicate, ResourceLoggerService resourceLoggerService, CancellationTokenSource cancellationTokenSource)
CustomResources.AppHost (1)
TestResource.cs (1)
30internal sealed class TestResourceLifecycleHook(ResourceNotificationService notificationService, ResourceLoggerService loggerService) : IDistributedApplicationLifecycleHook, IAsyncDisposable
Stress.AppHost (1)
TestResource.cs (1)
49internal sealed class TestResourceLifecycleHook(ResourceNotificationService notificationService, ResourceLoggerService loggerService) : IDistributedApplicationLifecycleHook, IAsyncDisposable
TestProject.AppHost (1)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
17ResourceLoggerService resourceLoggerService,