We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8df57a commit a4615e7Copy full SHA for a4615e7
1 file changed
src/Aspire.Hosting/Dcp/ContainerCreator.cs
@@ -28,8 +28,8 @@ internal record struct HostResourceWithEndpoints(
28
{
29
if (resource is IResourceWithEndpoints rwe && !resource.IsContainer())
30
31
- var endpoints = resource.Annotations.OfType<EndpointAnnotation>();
32
- if (endpoints.Any())
+ var endpoints = resource.Annotations.OfType<EndpointAnnotation>().ToArray();
+ if (endpoints.Length > 0)
33
34
return new HostResourceWithEndpoints(rwe, endpoints);
35
}
0 commit comments