PluginFramework.AddIn.Core.Framework.InitializeFramework C# (CSharp) Method

InitializeFramework() private method

private InitializeFramework ( ) : void
return 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;
        }