26 references to Subscribe
Aspire.Hosting (1)
ResourceLoggerForwarderService.cs (1)
70
using var subscription = resourceLoggerService.
Subscribe
(resourceId, logEvent =>
Aspire.Hosting.Tests (25)
Dcp\DcpExecutorTests.cs (14)
2647
using var subscription = resourceLoggerService.
Subscribe
(dcpResourceName, batch =>
2716
using var subscription = resourceLoggerService.
Subscribe
(container.Metadata.Name, batch =>
2800
using var subscription = resourceLoggerService.
Subscribe
(dcpResourceName, batch =>
2893
using var subscription = resourceLoggerService.
Subscribe
(blockingDcpResourceName, _ => { });
2971
using var subscription = resourceLoggerService.
Subscribe
(container.Metadata.Name, batch =>
3051
using var subscription = resourceLoggerService.
Subscribe
(container.Metadata.Name, batch =>
3135
using var subscription = resourceLoggerService.
Subscribe
(container.Metadata.Name, batch =>
3257
IDisposable? firstSubscription = resourceLoggerService.
Subscribe
(dcpResourceName, AddLogLines);
3288
secondSubscription = resourceLoggerService.
Subscribe
(dcpResourceName, AddLogLines);
3413
IDisposable? firstSubscription = resourceLoggerService.
Subscribe
(dcpResourceName, AddLogLines);
3444
secondSubscription = resourceLoggerService.
Subscribe
(dcpResourceName, AddLogLines);
3852
using var subscription = resourceLoggerService.
Subscribe
(dcpResourceName, batch =>
4033
using var subscription = resourceLoggerService.
Subscribe
(dcpResourceName, _ => { });
4118
using var subscription = resourceLoggerService.
Subscribe
(dcpResourceName, _ => { });
ResourceLoggerServiceTests.cs (9)
319
using var subscription = service.
Subscribe
(resourceName, logLines.AddRange);
354
using var subscription = service.
Subscribe
(resourceName, logLines.AddRange);
400
subscription = service.
Subscribe
(resourceName, batch =>
461
using var subscription = service.
Subscribe
(resourceName, _ => { });
477
using (service.
Subscribe
(testResource.Name, _ => { }))
511
using var subscription = service.
Subscribe
(resourceName, batch =>
554
using var subscription = service.
Subscribe
(resourceName, batch =>
602
using var stableSubscription = service.
Subscribe
(resourceName, batch =>
623
using var subscription = service.
Subscribe
(resourceName, batch =>
WaitForTests.cs (2)
818
using var subscription = resourceLoggerService.
Subscribe
(containerResource.Resource.Name, lines =>
868
using var subscription = resourceLoggerService.
Subscribe
(containerResource.Resource.Name, lines =>