Skip to content

Custom resources never display their URLs #9128

@DamianEdwards

Description

@DamianEdwards

The WithUrls method allows customization of URLs for any resource, but currently only resources started by DCP (executables, containers, projects) actually get their URL callbacks called and thus processed.

We need to figure out when to call the URL callbacks for custom resources given they don't have any pre-defined lifetime (custom resources manage their own lifetime). Perhaps we need to introduce a new event that is fired intrinsically for all resources and use that as the time to call the URL configuration callbacks. We purposely delayed calling the URL callbacks until the resource starting event is fired from DCP so that the endpoint-based URLs can be created before calling the callbacks, so we'd need to preserve that.

/Cc @afscrome @davidfowl

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions