aspire icon indicating copy to clipboard operation
aspire copied to clipboard

WithEndpoint shows up on all resources and isn't constrained to IResourceWithEndpoints

Open davidfowl opened this issue 1 year ago • 1 comments
trafficstars

This shows an azure storage resource which doesn't support adding endpoints:

image

davidfowl avatar May 02 '24 07:05 davidfowl

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.

mitchdenny avatar May 16 '24 02:05 mitchdenny

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.

mitchdenny avatar Jul 15 '24 23:07 mitchdenny