Skip to content

Specify Ports for resources created by DistributedApplicationTestingBuilder #4501

Closed Answered by davidfowl
gdodd1977 asked this question in Q&A
Discussion options

You must be logged in to vote
var endpoint = project.GetEndpoint("http");

var localService = builder.AddProject<Projects.CopilotFlow_LocalHelper_Service>($"{targetEnvironment}LocalHelperService"); 

var httpEndpoint =  localService.GetEndpoint("http");

builder.AddProject<Projects.Microsoft_PowerAutomate_CopilotFlow_Worker_Service>($"{targetEnvironment}WorkerService");

builder.AddProject<Projects.Microsoft_PowerAutomate_CopilotFlow_Web_Service>($"{targetEnvironment}WebService")
           .WithEnvironment("ApiHubsClientConfiguration__ServiceUrl", httpEndpoint)
           .WithEnvironment("ApiHubsClientConfiguration__ServiceUrl", httpEndpoint);

Replies: 2 comments 27 replies

Comment options

You must be logged in to vote
26 replies
@gdodd1977
Comment options

@davidfowl
Comment options

@gdodd1977
Comment options

@davidfowl
Comment options

Answer selected by gdodd1977
@gdodd1977
Comment options

@gdodd1977
Comment options

@gdodd1977
Comment options

@davidfowl
Comment options

Comment options

You must be logged in to vote
1 reply
@robbash
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants