private void DeleteAllBatches_() { foreach (KeyValuePair <string, IBatchCloser> kvp in batchClosers_) { IBatchCloser connector = kvp.Value; connector.CloseBatch(kvp.Key); } }
private void DeleteAllBatches_() { if (DontCloseBatches) { return; } Logger.Log(TraceLevel.Notice, Stage.Close, StageType.CloseBatch, new { batches = batchClosers_.Keys }); foreach (KeyValuePair <string, IBatchCloser> kvp in batchClosers_) { IBatchCloser connector = kvp.Value; connector.CloseBatch(kvp.Key); } }