Beispiel #1
0
        /// <summary>Called when the engine begins to cache the installation sources.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnCacheBegin(Wix.CacheBeginEventArgs args)
        {
            LogVerbose("Enter Method: OnCacheBegin");
            WPFBootstrapperEventArgs <Wix.CacheBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CacheBeginEventArgs>(args);

            TryInvoke(new Action(() => { _mainWindow.OnCacheBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnCacheBegin(cancelArgs.Arguments);
            }
            LogVerbose("Leaving Method: OnCacheBegin");
        }
        /// <summary>Called when the engine begins to cache the installation sources.</summary>
        /// <param name="args">The arguments of the event.</param>
        protected override void OnCacheBegin(Wix.CacheBeginEventArgs args)
        {
            this.LogBootstrapperEnterEvent(args, "CacheBegin");
            WPFBootstrapperEventArgs <Wix.CacheBeginEventArgs> cancelArgs = new WPFBootstrapperEventArgs <Wix.CacheBeginEventArgs>(args);

            this.TryInvoke(new Action(() => { this.model.OnCacheBegin(cancelArgs); }));
            if (!cancelArgs.Cancel)
            {
                base.OnCacheBegin(cancelArgs.Arguments);
            }
            this.LogBootstrapperLeaveEvent(null, "CacheBegin");
        }