Description
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