예제 #1
0
        private void Save(IItemConsumer consumer, DateTime lastCutoffWritten)
        {
            Trace.WriteLine("Saving...");
            consumer.Save();
            Trace.WriteLine("Save Complete.");

            // Record the new last cutoff written
            ItemProviderUtilities.SaveLastCutoff(this.Configuration.ArribaTable, this.ConfigurationName + ".CSV", lastCutoffWritten);
        }
예제 #2
0
        private void Save(IItemConsumer consumer, Stopwatch saveWatch, DateTime lastCutoffWritten)
        {
            // Save the data itself
            Trace.WriteLine("Saving...");
            saveWatch.Start();
            consumer.Save();
            saveWatch.Stop();
            Trace.WriteLine("Save Complete.");

            // Record the new last cutoff written
            ItemProviderUtilities.SaveLastCutoff(this.Configuration.ArribaTable, this.ConfigurationName, lastCutoffWritten);
        }