3 instantiations of ResourceNotificationService
Aspire.Hosting.Tests (3)
Dashboard\DashboardServiceTests.cs (2)
32var resourceNotificationService = new ResourceNotificationService(NullLogger<ResourceNotificationService>.Instance, new TestHostApplicationLifetime(), new ServiceCollection().BuildServiceProvider(), resourceLoggerService); 84var resourceNotificationService = new ResourceNotificationService(loggerFactory.CreateLogger<ResourceNotificationService>(), new TestHostApplicationLifetime(), new ServiceCollection().BuildServiceProvider(), resourceLoggerService);
Utils\ResourceNotificationServiceTestHelpers.cs (1)
14return new ResourceNotificationService(
153 references to ResourceNotificationService
Aspire.Hosting (16)
ApplicationModel\ResourceNotificationService.cs (7)
21private readonly ILogger<ResourceNotificationService> _logger; 29/// Creates a new instance of <see cref="ResourceNotificationService"/>. 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)}. 42public ResourceNotificationService(ILogger<ResourceNotificationService> logger, IHostApplicationLifetime hostApplicationLifetime) 51/// Creates a new instance of <see cref="ResourceNotificationService"/>. 57public ResourceNotificationService(ILogger<ResourceNotificationService> logger, IHostApplicationLifetime hostApplicationLifetime, IServiceProvider serviceProvider, ResourceLoggerService resourceLoggerService)
Dashboard\DashboardLifecycleHook.cs (1)
30ResourceNotificationService resourceNotificationService,
Dashboard\DashboardServiceData.cs (1)
22ResourceNotificationService resourceNotificationService,
Dashboard\DashboardServiceHost.cs (1)
56ResourceNotificationService resourceNotificationService,
Dcp\ApplicationExecutor.cs (1)
78ResourceNotificationService notificationService,
Devcontainers\Codespaces\CodespacesResourceUrlRewriterService.cs (1)
12internal sealed class CodespacesResourceUrlRewriterService(ILogger<CodespacesResourceUrlRewriterService> logger, IOptions<CodespacesOptions> options, CodespacesUrlRewriter codespaceUrlRewriter, ResourceNotificationService resourceNotificationService) : BackgroundService
DistributedApplicationBuilder.cs (3)
177var rns = @event.Services.GetRequiredService<ResourceNotificationService>(); 206_innerBuilder.Services.AddSingleton<ResourceNotificationService>();
Health\ResourceHealthCheckService.cs (1)
14internal class ResourceHealthCheckService(ILogger<ResourceHealthCheckService> logger, ResourceNotificationService resourceNotificationService, HealthCheckService healthCheckService, IServiceProvider services, IDistributedApplicationEventing eventing, TimeProvider timeProvider) : BackgroundService
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (1)
37ResourceNotificationService notificationService,
Provisioning\Provisioners\BicepProvisioner.cs (1)
23ResourceNotificationService notificationService,
Aspire.Hosting.Azure.Tests (6)
AzureCosmosDBEmulatorFunctionalTests.cs (2)
46var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureEventHubsExtensionsTests.cs (2)
47var rns = app.Services.GetRequiredService<ResourceNotificationService>();
AzureStorageEmulatorFunctionalTests.cs (2)
48var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Containers.Tests (3)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
16ResourceNotificationService resourceNotificationService,
WithDockerfileTests.cs (2)
756var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Elasticsearch.Tests (2)
ElasticsearchFunctionalTests.cs (2)
229var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Garnet.Tests (2)
GarnetFunctionalTests.cs (2)
42var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Kafka.Tests (2)
KafkaFunctionalTests.cs (2)
43var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.MongoDB.Tests (2)
MongoDbFunctionalTests.cs (2)
54var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.MySql.Tests (2)
MySqlFunctionalTests.cs (2)
50var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Nats.Tests (2)
NatsFunctionalTests.cs (2)
345var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Oracle.Tests (2)
OracleFunctionalTests.cs (2)
373var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.PostgreSQL.Tests (2)
PostgresFunctionalTests.cs (2)
53var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
97var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Qdrant.Tests (2)
QdrantFunctionalTests.cs (2)
245var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.RabbitMQ.Tests (2)
RabbitMQFunctionalTests.cs (2)
44var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Redis.Tests (4)
RedisFunctionalTests.cs (4)
48var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 222var rns = app2.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.SqlServer.Tests (2)
SqlServerFunctionalTests.cs (2)
44var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Testing (1)
ResourceLoggerForwarderService.cs (1)
16ResourceNotificationService resourceNotificationService,
Aspire.Hosting.Testing.Tests (8)
ResourceLoggerForwarderServiceTests.cs (2)
127private static ResourceNotificationService CreateResourceNotificationService(TestHostApplicationLifetime hostApplicationLifetime, ResourceLoggerService resourceLoggerService) 129return new ResourceNotificationService(NullLogger<ResourceNotificationService>.Instance, hostApplicationLifetime, new ServiceCollection().BuildServiceProvider(), resourceLoggerService);
TestingFactoryTests.cs (2)
75var rns = _app.Services.GetRequiredService<ResourceNotificationService>();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (4)
35var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 114var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Tests (74)
Codespaces\CodespacesUrlRewriterTests.cs (4)
33var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 71var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Dashboard\DashboardLifecycleHookTests.cs (4)
43var resourceNotificationService = ResourceNotificationServiceTestHelpers.Create(logger: factory.CreateLogger<ResourceNotificationService>()); 84var resourceNotificationService = ResourceNotificationServiceTestHelpers.Create(); 102ResourceNotificationService resourceNotificationService,
Dashboard\DashboardResourceTests.cs (2)
460var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
Dashboard\DashboardServiceTests.cs (4)
32var resourceNotificationService = new ResourceNotificationService(NullLogger<ResourceNotificationService>.Instance, new TestHostApplicationLifetime(), new ServiceCollection().BuildServiceProvider(), resourceLoggerService); 84var resourceNotificationService = new ResourceNotificationService(loggerFactory.CreateLogger<ResourceNotificationService>(), new TestHostApplicationLifetime(), new ServiceCollection().BuildServiceProvider(), resourceLoggerService);
Dcp\ApplicationExecutorTests.cs (3)
72var resourceNotificationService = ResourceNotificationServiceTestHelpers.Create(); 1003var resourceNotificationService = ResourceNotificationServiceTestHelpers.Create(); 1052ResourceNotificationService? resourceNotificationService = null)
Health\ResourceHealthCheckServiceTests.cs (18)
25var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 59var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 102var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 149var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 189var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 220var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 270var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 330var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 383var rns = app.Services.GetRequiredService<ResourceNotificationService>();
HealthCheckTests.cs (2)
86var rns = app.Services.GetRequiredService<ResourceNotificationService>();
ResourceNotificationTests.cs (15)
49var notificationService = ResourceNotificationServiceTestHelpers.Create(); 102var notificationService = ResourceNotificationServiceTestHelpers.Create(); 161var notificationService = ResourceNotificationServiceTestHelpers.Create(); 176var notificationService = ResourceNotificationServiceTestHelpers.Create(); 192var notificationService = ResourceNotificationServiceTestHelpers.Create(); 207var notificationService = ResourceNotificationServiceTestHelpers.Create(); 222var notificationService = ResourceNotificationServiceTestHelpers.Create(); 237var notificationService = ResourceNotificationServiceTestHelpers.Create(); 250var notificationService = ResourceNotificationServiceTestHelpers.Create(); 267var notificationService = ResourceNotificationServiceTestHelpers.Create(hostApplicationLifetime: hostApplicationLifetime); 282var notificationService = ResourceNotificationServiceTestHelpers.Create(hostApplicationLifetime: hostApplicationLifetime); 299var logger = new FakeLogger<ResourceNotificationService>(); 300var notificationService = ResourceNotificationServiceTestHelpers.Create(logger: logger); 367var logger = new FakeLogger<ResourceNotificationService>(); 368var notificationService = ResourceNotificationServiceTestHelpers.Create(logger: logger);
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
16ResourceNotificationService resourceNotificationService,
Utils\LoggerNotificationExtensions.cs (4)
35var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 114var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
Utils\ResourceNotificationServiceTestHelpers.cs (3)
12internal static ResourceNotificationService Create(ILogger<ResourceNotificationService>? logger = null, IHostApplicationLifetime? hostApplicationLifetime = null, ResourceLoggerService? resourceLoggerService = null) 15logger ?? new NullLogger<ResourceNotificationService>(),
WaitForTests.cs (14)
31var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 107var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 148var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 196var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 244var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 293var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 327var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Hosting.Valkey.Tests (2)
ValkeyFunctionalTests.cs (2)
219var rns = app.Services.GetRequiredService<ResourceNotificationService>();
Aspire.Playground.Tests (10)
AppHostTests.cs (2)
71var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
Infrastructure\DistributedApplicationExtensions.cs (4)
88var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>(); 103var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
tests\Aspire.Hosting.Tests\Utils\LoggerNotificationExtensions.cs (4)
35var rns = app.Services.GetRequiredService<ResourceNotificationService>(); 114var resourceNotificationService = app.Services.GetRequiredService<ResourceNotificationService>();
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)
16ResourceNotificationService resourceNotificationService,