aspire
aspire copied to clipboard
WithEndpoint shows up on all resources and isn't constrained to IResourceWithEndpoints
trafficstars
This shows an azure storage resource which doesn't support adding endpoints:
I was going to say this is fixed .. but there is another dimension. Storage for example actually implements IResourceWithEndpoints because it returns an EndpointReference which takes an IResourceWithEndpoints in the constructor.
Closing this. I think Azure Storage is a special case but I don't think we can fix this without breaking API. We would need the notion of a resource that has endpoints, but can't mutate them.