private void Schedule(DataGetContext context, int ranking, int count, int pieces)
        {
            string           strategy = context.Configuration.Strategy;
            DataGetToDataMap omnibus  = context.Dependencies.DataMap;

            foreach (PeerHash peer in omnibus.Find(ranking, count))
            {
                omnibus.Schedule(strategy, peer, pieces);
            }
        }
Beispiel #2
0
 public DataGetBuilder WithDataMap(DataGetToDataMap dataMap)
 {
     dependencies.DataMap = dataMap;
     return(this);
 }