PluginFramework.AddIn.Core.Framework.InitializeFramework C# (CSharp) Méthode

InitializeFramework() private méthode

private InitializeFramework ( ) : void
Résultat void
        private void InitializeFramework()
        {
            serviceId = 1;
            if (bundleRepository == null)
            {
                bundleRepository = new BundleRepository();
            }
            else
            {
                throw new InvalidOperationException("The framework is already started");
            }

            if (serviceRegistry == null)
            {
                serviceRegistry = new ServiceRegistry();
            }
            else
            {
                throw new InvalidOperationException("The framework is already started");
            }

            systemBundle = new SystemBundle(this);
            systemBundleContext = (BundleContext)systemBundle.Context;
        }