-
Notifications
You must be signed in to change notification settings - Fork 729
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Milestone
Description
For external endpoint resources, I'm using this code:
public class ResourceWithServiceDiscovery : IResourceWithServiceDiscovery
{
public required string Name { get; init; }
public required ResourceMetadataCollection Annotations { get; init; }
}And using it like this:
var remoteResource = new ResourceWithServiceDiscovery
{
Name = "someremoteresource",
Annotations = [
new AllocatedEndpointAnnotation(
"http",
ProtocolType.Tcp,
remoteHubConfig.GetValue<string>("Address")!,
remoteHubConfig.GetValue<int>("Port"),
remoteHubConfig.GetValue<string>("Scheme")!)
]
};It would be nice to have something like this built in and showing up in the dashboard.
luy710, IEvangelist and BreezeHeatluy710, mohabbati and Copilot
Metadata
Metadata
Assignees
Labels
area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplicationIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication