Пример #1
0
 private void RaiseConfigurationChanging( ConfigurationChangingEventArgs e )
 {
     var h = ConfigurationChanging;
     if( h != null ) h( this, e );
 }
Пример #2
0
        internal void OnConfigurationChanged()
        {
            Debug.Assert( _currentEventArgs != null );

            FinalConfiguration = _currentEventArgs.FinalConfiguration;
            if( _currentEventArgs.FinalConfigurationChange == FinalConfigurationChange.StatusChanged
                || _currentEventArgs.FinalConfigurationChange == FinalConfigurationChange.ItemAdded
                || _currentEventArgs.FinalConfigurationChange == FinalConfigurationChange.ItemRemoved
                || _currentEventArgs.FinalConfigurationChange == FinalConfigurationChange.ImpactChanged)
            {
                RaiseConfigurationChanged( new ConfigurationChangedEventArgs( FinalConfiguration, _currentEventArgs.FinalConfigurationChange, _currentEventArgs.ConfigurationItemChanged ) );
            }
            else
            {
                RaiseConfigurationChanged( new ConfigurationChangedEventArgs( FinalConfiguration, _currentEventArgs.FinalConfigurationChange, _currentEventArgs.ConfigurationLayerChanged ) );
            }
            _currentEventArgs = null;
        }
Пример #3
0
 IYodiiEngineResult OnConfigurationChangingForExternalWorld( ConfigurationChangingEventArgs eventChanging )
 {
     _currentEventArgs = eventChanging;
     RaiseConfigurationChanging( _currentEventArgs );
     if( _currentEventArgs.IsCanceled )
     {
         return new YodiiEngineResult( new ConfigurationFailureResult( _currentEventArgs.FailureExternalReasons ), Engine );
     }
     return null;
 }