private void VerificacionesAntesDeAplicarReaccion(Reaction reAction, Port puerto, IProcessData processData) { if (reAction.CompararConPuerto) { if (reAction.Port != null) { var port = this._iotConfigurations.GetPortByPin(reAction.Port.Pin); try { if (processData.CompararConOtroPuerto(reAction, puerto, port)) { if (reAction.ActionExecute != null) { EjecutarAccion(reAction, puerto); } } } catch (Exception ex) { //this._logger.Log(LogLevel.ERROR, "Error al parsear el valor de los puertos : " + ex.Message); } } } else { if (processData.CompararConSigoMismo(reAction, puerto)) { if (reAction.ActionExecute != null) { EjecutarAccion(reAction, puerto); } } } }