Exemple #1
0
        /// <summary>
        /// Registers the specified bundle (used by the bootstrapper)
        /// </summary>
        /// <param name="bundle"></param>
        public void RegisterBundle(IBundle bundle)
        {
            var bundleInfo = new BundleInfo
            {
                BundleName   = bundle.BundleName,
                AssemblyName = bundle.GetType().Assembly.GetName()
            };

            if (m_registeredBundles.ContainsKey(bundleInfo))
            {
                throw new InvalidOperationException("The specified bundle has already been registered.");
            }

            m_registeredBundles.Add(bundleInfo, bundle);
        }