Esempio n. 1
0
        /// <summary>
        /// Gets a static snapshot of this transfer checkpoint
        /// </summary>
        /// <returns>A snapshot of current transfer checkpoint</returns>
#if DOTNET5_4
        public TransferCollection <T> Copy()
        {
            TransferCollection <T> copyObj = new TransferCollection <T>();

            foreach (var kv in this.transfers)
            {
                Transfer transfer = kv.Value as Transfer;
                copyObj.AddTransfer((Transfer)transfer.Copy());
            }

            return(copyObj);
        }