Example #1
0
        private void createSnapshotMaps(BuildContext context)
        {
            var i = 0;

            while (context.MapQueue.Count > 0)
            {
                var sourceObject = context.MapQueue.Dequeue();
                var targetObject = context.DoneObjects[sourceObject];
                SnapshotOidMap.Create(sourceObject, targetObject).OrdNo = i++;
            }
        }
Example #2
0
        /// <summary>
        /// Creates the snapshot maps.
        /// </summary>
        /// <param name="context">The context.</param>
        private void createSnapshotMaps(BuildContext context)
        {
            context.Worker.ReportProgress(Localizer.BuildObjectMaps);
            var i = 0;

            while (context.DoneObjects.Count > 0)
            {
                context.Worker.ReportPercent((double)i / (double)context.DoneObjects.Count);
                var sourceObject = context.DoneObjects.Dequeue();
                var snapObject   = context.Map[sourceObject];
                SnapshotOidMap.Create(sourceObject, snapObject).OrdNo = i++;
            }
        }