Example #1
0
        public void RaisePropertyValueChangedEvent(DomainObject domainObject, PropertyDefinition propertyDefinition, object oldValue, object newValue)
        {
            ArgumentUtility.CheckNotNull("domainObject", domainObject);
            ArgumentUtility.CheckNotNull("propertyDefinition", propertyDefinition);

            using (EnterScopeOnDemand())
            {
                domainObject.OnPropertyChanged(new PropertyChangeEventArgs(propertyDefinition, oldValue, newValue));
            }

            _extensionCollection.PropertyValueChanged(_clientTransaction, domainObject, propertyDefinition, oldValue, newValue);
            _listenerCollection.PropertyValueChanged(_clientTransaction, domainObject, propertyDefinition, oldValue, newValue);
        }