private void ProcessBatch(IAData d) { list.Add(d); if (list.Count == 1000) { List<IAData> tosend = new List<IAData>(list); writer.Ask(tosend); list.Clear(); } if(list.Count>1000) { Console.WriteLine("List count: " + list.Count); } }
private void ProcessBatch(IAData d) { list.Add(d); if (list.Count == 1000) { List <IAData> tosend = new List <IAData>(list); writer.Ask(tosend); list.Clear(); } if (list.Count > 1000) { Console.WriteLine("List count: " + list.Count); } }
private void ProcessMessage(IAData data) { writer.Tell(data); }
private void ProcessMessage(IAData data) { writer.Tell(data); }
private void Save(IAData tosave) { //Console.WriteLine(count++); target.Save(tosave); }
private void Save(IAData tosave) { //Console.WriteLine(count++); target.Save(tosave); }