private async Task NextCycleActionAsync() { _logger.LogDebug($"{nameof(BishopService)} - {nameof(NextCycleActionAsync)} - Starting to alert"); try { bool response = await _thermalNotifierService.AlertTemperatureAsync(); _logger.LogDebug($"{nameof(BishopService)} - {nameof(NextCycleActionAsync)} - httpClient response {response}"); if (!response) { _logger.LogError($"{nameof(BishopService)} - {nameof(NextCycleActionAsync)} - Error in request for next action. response: {response}"); return; } } catch (Exception ex) { _logger.LogError(ex, $"{nameof(BishopService)} - {nameof(NextCycleActionAsync)} - Error with {nameof(_thermalNotifierService)}"); } }
public async Task <bool> Get() { return(await _thermalNotifierService.AlertTemperatureAsync()); }