6 references to Services
Aspire.Hosting.DevTunnels (4)
DevTunnelResourceBuilderExtensions.cs (4)
679
var portLogger = e.
Services
.GetRequiredService<ResourceLoggerService>().GetLogger(portResource);
680
var notifications = e.
Services
.GetRequiredService<ResourceNotificationService>();
681
var eventing = e.
Services
.GetRequiredService<IDistributedApplicationEventing>();
691
await eventing.PublishAsync<ResourceStoppedEvent>(new(portResource, e.
Services
, new(portResource, portResource.Name, stoppedSnapshot!)), ct).ConfigureAwait(false);
Aspire.Hosting.Tests (2)
Eventing\DistributedApplicationBuilderEventingTests.cs (2)
280
Assert.NotNull(evt.
Services
);
319
Assert.NotNull(e.
Services
);