ZeroInstall.Commands.Utils.Exporter.DeployBootstrapRun C# (CSharp) Метод

DeployBootstrapRun() публичный Метод

Deploys a bootstrap file for importing exported feeds and implementations.
public DeployBootstrapRun ( [ handler ) : void
handler [ A callback object used when the the user needs to be asked questions or informed about download and IO tasks.
Результат void
        public void DeployBootstrapRun([NotNull] ITaskHandler handler)
        {
            #region Sanity checks
            if (handler == null) throw new ArgumentNullException(nameof(handler));
            #endregion

            DeployBootstrap(handler, mode: "run");
        }

Usage Example

Пример #1
0
        /// <inheritdoc/>
        public override ExitCode Execute()
        {
            Solve();

            var exporter = new Exporter(Selections, Requirements, _outputPath);

            exporter.ExportFeeds(FeedCache, OpenPgp);
            if (!_noImplementations)
            {
                DownloadUncachedImplementations();
                exporter.ExportImplementations(Store, Handler);
            }

            exporter.DeployImportScript();
            switch (_bootstrapType)
            {
                case BootstrapMode.Run:
                    exporter.DeployBootstrapRun(Handler);
                    break;
                case BootstrapMode.Integrate:
                    exporter.DeployBootstrapIntegrate(Handler);
                    break;
            }

            SelfUpdateCheck();

            return ShowOutput();
        }