TempService¶
Namespace: Rest_API.Services.Temp
Provides operations related to the location for the outside temperature data, for example getting the right coordinates for the postalcode.
Inheritance Object → TempService
Implements ITempService
Constructors¶
TempService(ILogger<TempService>, IHttpClientFactory, ICoordinateRepo, IConfiguration)¶
Initializes a new instance of the TempService class.
public TempService(ILogger<TempService> logger, IHttpClientFactory httpClientFactory, ICoordinateRepo coordinateRepo, IConfiguration configuration)
Parameters¶
logger
ILogger<TempService>
The logger instance for logging actions and errors.
httpClientFactory
IHttpClientFactory
The httpClient for API calls.
coordinateRepo
ICoordinateRepo
The settingsRepo instance for connection with the postgres database.
configuration
IConfiguration
Methods¶
GetCoordinates(Int32)¶
Parameters¶
postalCode
Int32