예제 #1
0
        /// <summary>
        /// Loads everything from a <see cref="IAsyncEnumerable{T}"/> into this <see cref="UpdateEntry"/>
        /// </summary>
        /// <param name="fileEntries">File entries to load in</param>
        public async Task LoadAsyncEnumerable(IAsyncEnumerable <FileEntry?> fileEntries)
        {
            await foreach (var fileEntry in fileEntries)
            {
                /*If the fileEntry is null then something happened while grabbing*
                 * the update files, clear out*/
                if (fileEntry == null)
                {
                    DeltaFile.Clear();
                    SameFile.Clear();
                    NewFile.Clear();
                    break;
                }

                ProcessFileEntry(fileEntry);
            }
        }