protected override void initialize()
 {
     Utils.initializeNestedComputings(_nestedComputings, this);
     _getValueExpressionWatcher = new ExpressionWatcher(_expressionInfo);
     Utils.initializeExpressionWatcherCurrentComputings(_getValueExpressionWatcher, _expressionInfo._callCount, this);
     _getValueExpressionWatcher.ValueChanged = getValueExpressionWatcherOnValueChanged;
     setValue(getResult());
 }
Exemple #2
0
 protected override void processSource()
 {
     if (_isActive)
     {
         _getValueExpressionWatcher = new ExpressionWatcher(this, _expressionInfo);
         Utils.initializeExpressionWatcherCurrentComputings(_getValueExpressionWatcher, _expressionInfo._callCount, this);
         _getValueExpressionWatcher.ValueChanged = getValueExpressionWatcherOnValueChanged;
         setValue(getResult());
     }
     else
     {
         _getValueExpressionWatcher.Dispose();
         EventUnsubscriber.QueueSubscriptions(_getValueExpressionWatcher._propertyChangedEventSubscriptions, _getValueExpressionWatcher._methodChangedEventSubscriptions);
         Utils.removeDownstreamConsumedComputing(_getValueExpressionWatcher, this);
         setDefaultValue();
     }
 }