Пример #1
0
        /// <summary>
        /// Starts a new batch.
        /// </summary>
        /// <returns>The newly started batch.</returns>
        static public Batch StartBatch()
        {
            Batch batch = null;

            using (LogGroup logGroup = LogGroup.Start("Starting a batch of data operations.", LogLevel.Debug))
            {
                batch = new Batch();

                LogWriter.Debug("New batch added to the stack.");

                Batches.Push(batch);
            }

            return(batch);
        }