Skip to content

Commit e4da78b

Browse files
authored
Update BWA+Entra BFF sample (#556)
1 parent 9705a5a commit e4da78b

File tree

1 file changed

+1
-4
lines changed
  • 9.0/BlazorWebAppEntraBff/BlazorWebAppEntra

1 file changed

+1
-4
lines changed

9.0/BlazorWebAppEntraBff/BlazorWebAppEntra/Program.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@
107107

108108
builder.Services.AddHttpForwarderWithServiceDiscovery();
109109
builder.Services.AddHttpContextAccessor();
110-
builder.Services.AddHttpClient<IWeatherForecaster, ServerWeatherForecaster>(httpClient =>
111-
{
112-
httpClient.BaseAddress = new("https://weatherapi");
113-
});
110+
builder.Services.AddScoped<IWeatherForecaster, ServerWeatherForecaster>();
114111

115112
var app = builder.Build();
116113

0 commit comments

Comments
 (0)