internal ParameterizedCommandValueBag( [NotNull] ObservableObject observableObject, [NotNull] ParameterizedCommandPropertyAccessor propertyAccessor) { this.propertyAccessor = propertyAccessor; try { currentValue = propertyAccessor.Getter(observableObject); isValueValid = true; } catch (Exception e) { EventSource.Log.UnableInitiallyToReadProperty(propertyAccessor.ObjectTypeName, propertyAccessor.Name, e.ToString()); } if (currentValue != null) { currentIsExecuting = currentValue.RunningExecution != null; isIsExecutingValid = true; } }