6 references to Services
Aspire.Hosting.DevTunnels (4)
DevTunnelResourceBuilderExtensions.cs (4)
665
var portLogger = e.
Services
.GetRequiredService<ResourceLoggerService>().GetLogger(portResource);
666
var notifications = e.
Services
.GetRequiredService<ResourceNotificationService>();
667
var eventing = e.
Services
.GetRequiredService<IDistributedApplicationEventing>();
677
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
);