Exemplo n.º 1
0
 public OnDemandFetcher()
 {
     requested    = new DoubleEndedQueue();
     statusString = "";
     //crc32 = new CRC32();
     payload           = new byte[500];
     filePriorities    = new byte[4][];
     passiveRequests   = new DoubleEndedQueue();
     running           = true;
     waiting           = false;
     complete          = new DoubleEndedQueue();
     gzipInputBuffer   = new byte[65000];
     nodeSubList       = new CacheableQueue();
     versions          = new int[4][];
     crcs              = new int[4][];
     unrequested       = new DoubleEndedQueue();
     mandatoryRequests = new DoubleEndedQueue();
 }
Exemplo n.º 2
0
 public OnDemandFetcher(ITaskDelayFactory taskDelayFactory)
 {
     TaskDelayFactory = taskDelayFactory ?? throw new ArgumentNullException(nameof(taskDelayFactory));
     requested        = new DoubleEndedQueue();
     statusString     = "";
     //crc32 = new CRC32();
     payload           = new byte[500];
     filePriorities    = new byte[4][];
     passiveRequests   = new DoubleEndedQueue();
     running           = true;
     waiting           = false;
     complete          = new DoubleEndedQueue();
     gzipInputBuffer   = new byte[65000];
     nodeSubList       = new CacheableQueue();
     versions          = new int[4][];
     crcs              = new int[4][];
     unrequested       = new DoubleEndedQueue();
     mandatoryRequests = new DoubleEndedQueue();
 }