16 lines
375 B
C#
16 lines
375 B
C#
|
var builder = WebApplication.CreateBuilder(args);
|
|||
|
var app = builder.Build();
|
|||
|
|
|||
|
app.MapGet("/", async () =>
|
|||
|
{
|
|||
|
var result = "Hello World 1!";
|
|||
|
|
|||
|
var httpClient = new HttpClient();
|
|||
|
var secondWorkerResponse = await httpClient.GetStringAsync("http://worker-2:80/");
|
|||
|
result += " Response from worker-2: " + secondWorkerResponse;
|
|||
|
|
|||
|
return result;
|
|||
|
});
|
|||
|
|
|||
|
app.Run();
|