Exemplo n.º 1
0
 public Guid?AuthorizeSensor(string deviceId, string httpContextUserName = null, string httpContextPassword = null)
 {
     _logger.LogInformation($"Authorize sensor: {deviceId}");
     return(_devicessRepository.GetDevicesByEspId(deviceId).Where(w => w.HttpUserName == httpContextUserName && w.HttpPassword == httpContextPassword).FirstOrDefault()?.DeviceId);
 }