ZeroInstall.DesktopIntegration.IntegrationManager.RepairAppInternal C# (CSharp) Method

RepairAppInternal() protected method

protected RepairAppInternal ( AppEntry appEntry, Feed feed ) : void
appEntry AppEntry
feed Feed
return void
        protected override void RepairAppInternal(AppEntry appEntry, Feed feed)
        {
            #region Sanity checks
            if (appEntry == null) throw new ArgumentNullException(nameof(appEntry));
            if (feed == null) throw new ArgumentNullException(nameof(feed));
            #endregion

            var toReAdd = (appEntry.AccessPoints == null)
                ? Enumerable.Empty<AccessPoint>()
                : appEntry.AccessPoints.Entries.ToList();
            AddAccessPointsInternal(appEntry, feed, toReAdd);

            WriteAppDir(appEntry);
        }
        #endregion