/// <summary>
        /// Register an other bootstrapper to initialize.
        /// </summary>
        /// <param name="boot">BootStrapper to initialize.</param>
        public void Register(IBootStrap boot)
        {
            if (_bootList.Contains(boot))
                throw new InvalidOperationException("This bootstrapper has already been added to the initialization list.");

            _bootList.Add(boot);
        }
Пример #2
0
        /// <summary>
        /// Register an other bootstrapper to initialize.
        /// </summary>
        /// <param name="boot">BootStrapper to initialize.</param>
        public void Register(IBootStrap boot)
        {
            if (_bootList.Contains(boot))
            {
                throw new InvalidOperationException("This bootstrapper has already been added to the initialization list.");
            }

            _bootList.Add(boot);
        }