Exemple #1
0
        public ShellConfiguration(string name, ShellConfiguration configuration)
        {
            _name = name;

            if (configuration._configuration != null)
            {
                _configurationProviders = configuration._configuration.Providers
                                          .Where(p => !(p is UpdatableDataProvider)).ToArray();

                _initialData = configuration._updatableData.ToArray();

                return;
            }

            if (name == null)
            {
                _configurationProviders = configuration._configurationProviders;
                _initialData            = configuration._initialData;
                return;
            }

            _configBuilderFactory = configuration._configBuilderFactory;
        }
Exemple #2
0
 public ShellConfiguration(ShellConfiguration configuration) : this(null, configuration)
 {
 }