You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Dependencies of multiple resources
* DCP object creation as set of tasks
... to distinguish between "regular" and "tunnel" services
* Enable tunnel by default
* Clean up startup performance script
* Bug fixes
* Fix Kafka tests
* Fix WaitFor test for failing resource
* Remove unnecessary references from Hosting.Maui project
* Feedback from Eric
Copy file name to clipboardExpand all lines: src/Aspire.Hosting/ApplicationModel/HostUrl.cs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -55,12 +55,13 @@ public record HostUrl(string Url) : IValueProvider, IManifestExpressionProvider
55
55
// Determine what hostname means that we want to contact the host machine from the container. If using the new tunnel feature, this needs to be the address of the tunnel instance.
56
56
// Otherwise we want to try and determine the container runtime appropriate hostname (host.docker.internal or host.containers.internal).
/// This method invokes environment variable and command-line argument callbacks to discover all references. The context resource (<paramref name="resource"/>) is not considered a dependency (even if it is transitively referenced).
// Ensure the input resource is not in its own dependency set, even if referenced transitively.
1289
-
dependencies.Remove(resource);
1335
+
// Ensure the input resources are not in its own dependency set, even if referenced transitively.
1336
+
foreach(varresourceinresources)
1337
+
{
1338
+
dependencies.Remove(resource);
1339
+
}
1290
1340
1291
1341
returndependencies;
1292
1342
}
1293
1343
1294
1344
/// <summary>
1295
1345
/// Gathers direct dependencies of a given resource.
1296
1346
/// </summary>
1297
-
/// <returns>
1298
-
/// Newly discovered dependencies (not already in <paramref name="dependencies"/>).
1299
-
/// </returns>
1347
+
/// <param name="resource">The resource to gather dependencies for.</param>
1348
+
/// <param name="dependencies">The set of dependencies (where dependency resources will be placed).</param>
1349
+
/// <param name="newDependencies">The set of newly discovered dependencies in this invocation (not present in <paramref name="dependencies"/> at the moment of invocation).</param>
1350
+
/// <param name="executionContext">The execution context for resolving environment variables and arguments.</param>
1351
+
/// <param name="cancellationToken">A cancellation token to observe while gathering dependencies.</param>
0 commit comments