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

StartBundle() public method

public StartBundle ( int id ) : IBundle
id int
return IBundle
        public IBundle StartBundle(int id)
        {
            IBundle bundle = bundleRepository.GetBundle(id);
            if (bundle == null)
            {
                throw new BundleException(String.Format("Bundle not found.BundleId:{0}", id));
            }
            if (bundle.State != BundleState.Installed)
            {
                throw new BundleException("Bundle is aready started.");
            }
            bundle.Start();

            return bundle;
        }

Same methods

Framework::StartBundle ( IBundle bundle ) : void