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

AddAppInternal() protected method

protected AddAppInternal ( string petName, Requirements requirements, Feed feed ) : AppEntry
petName string
requirements Requirements
feed Feed
return AppEntry
        protected override AppEntry AddAppInternal(string petName, Requirements requirements, Feed feed)
        {
            #region Sanity checks
            if (string.IsNullOrEmpty(petName)) throw new ArgumentNullException(nameof(petName));
            if (requirements == null) throw new ArgumentNullException(nameof(requirements));
            if (feed == null) throw new ArgumentNullException(nameof(feed));
            #endregion

            throw new NotImplementedException();
            /*
            // Prevent double entries
            if (AppList.ContainsEntry(petName)) throw new InvalidOperationException(string.Format(Resources.AppAlreadyInList, feed.Name));

            // Get basic metadata and copy of capabilities from feed
            var appEntry = new AppEntry {InterfaceUri = petName, Requirements = requirements, Name = feed.Name, Timestamp = DateTime.UtcNow};
            appEntry.CapabilityLists.AddRange(feed.CapabilityLists.CloneElements());

            AppList.Entries.Add(appEntry);
            WriteAppDir(appEntry);
            return appEntry;
            */
        }

Same methods

IntegrationManager::AddAppInternal ( FeedTarget target ) : AppEntry
IntegrationManager::AddAppInternal ( AppEntry prototype, Feed>.Converter feedRetriever ) : void