Skip to content

Commit 3dd9c29

Browse files
authored
Subscribe to this specific resource, not all. (#10238)
1 parent 449c50d commit 3dd9c29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Aspire.Hosting.Yarp/YarpResourceExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static IResourceBuilder<YarpResource> AddYarp(
4545
// perspective, the url will be something like https://docker.host.internal, so it will NOT be valid.
4646
yarpBuilder.WithEnvironment("YARP_UNSAFE_OLTP_CERT_ACCEPT_ANY_SERVER_CERTIFICATE", "true");
4747

48-
yarpBuilder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>((ctx, ct) =>
48+
yarpBuilder.ApplicationBuilder.Eventing.Subscribe<BeforeResourceStartedEvent>(resource, (ctx, ct) =>
4949
{
5050
configBuilder.BuildAndPopulateEnvironment();
5151
return Task.CompletedTask;

0 commit comments

Comments
 (0)