79273132

Date: 2024-12-11 20:54:27
Score: 1
Natty:
Report link

When you add builder.AddServiceDefaults(); to your applications which implemented on ServiceDefaults project , its adds this code builder.Services.AddServiceDiscovery().

Service discovery read your urls from "Services" section on the application settings

So use this:

builder.Configuration.GetSection("Services").GetChildren();

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When you addto you
  • Low reputation (1):
Posted by: Mohamed Dawood