Example #1
0
 /// <summary>
 /// Constructs a BatchedDataInserter for the given workspace, with the given settings
 /// </summary>
 /// <param name="w">Workspace to use when creating requests</param>
 /// <param name="batchSize">maximum batch size</param>
 /// <param name="autoSubmit">whether or not to auto-submit the batch when the max size is reached</param>
 public BatchedDataInserter(Workspace w, uint batchSize, bool autoSubmit)
 {
     queue     = new BatchRequestQueue(batchSize, autoSubmit);
     workspace = w;
 }
 /// <summary>
 /// Constructs a BatchedDataInserter for the given workspace, with the given settings
 /// </summary>
 /// <param name="w">Workspace to use when creating requests</param>
 /// <param name="batchSize">maximum batch size</param>
 /// <param name="autoSubmit">whether or not to auto-submit the batch when the max size is reached</param>
 public BatchedDataInserter(Workspace w, uint batchSize, bool autoSubmit)
 {
     queue = new BatchRequestQueue(batchSize, autoSubmit);
     workspace = w;
 }