Beispiel #1
0
        public CopyPasteEngine(TableEntitySdk srcTable, TableEntitySdk destTable)
        {
            SrcTable  = srcTable;
            DestTable = destTable;

            _readTask  = ReadThreadAsync();
            _writeTask = WriteThreadAsync();
        }
Beispiel #2
0
        private void FillSlots(List <TableEntitySdk> srcTables)
        {
            while (_activeSlots.Count < _slotsCount)
            {
                if (srcTables.Count == 0)
                {
                    return;
                }

                var srcTable = srcTables[0];
                srcTables.RemoveAt(0);

                var destTable = new TableEntitySdk(_destConnString, srcTable.CloudTable.Name);
                var engine    = new CopyPasteEngine(srcTable, destTable);
                _activeSlots.Add(srcTable.CloudTable.Name, engine);
            }
        }