2 implementations of IWeatherForecastService
HostedBlazorWebassemblyApp.Client (1)
Data\HttpWeatherForecastService.cs (1)
14
public class HttpWeatherForecastService :
IWeatherForecastService
HostedBlazorWebassemblyApp.Server (1)
Data\WeatherForecastService.cs (1)
12
public class WeatherForecastService :
IWeatherForecastService
4 references to IWeatherForecastService
HostedBlazorWebassemblyApp.Client (1)
Program.cs (1)
25
builder.Services.AddScoped<
IWeatherForecastService
, HttpWeatherForecastService>();
HostedBlazorWebassemblyApp.Server (3)
Controllers\WeatherForecastController.cs (2)
16
private readonly
IWeatherForecastService
_forecastService;
19
public WeatherForecastController(ILogger<WeatherForecastController> logger,
IWeatherForecastService
forecastService)
Startup.cs (1)
33
services.AddSingleton<
IWeatherForecastService
, WeatherForecastService>();