private void Apply(ValidationFailed evt) { var key = $"{evt.ControlId}-{evt.Validator}"; if (_controlStatus.ContainsKey(key)) { var item = _controlStatus[key]; item.Values = evt.Values; item.State = false; item.Message = evt.Message; item.Timestamp = evt.Timestamp; } else { var item = new ControlValidatorStatus { ControlId = evt.ControlId, Message = evt.Message, State = false, Timestamp = evt.Timestamp, Values = evt.Values, Validator = evt.Validator }; _controlStatus.Add(key, item); } }