public static IReadOnlyDictionary <ChangeReport, ChangeEmitResult> EmitAndSave(this ChangeSaver saver)
        {
            var vals = saver.Emit();

            foreach (var item in vals)
            {
                if (item.Value.SelectCondition != null)
                {
                    item.Value.SelectCondition.Save(item.Value.Report,
                                                    item.Value.Transfed);
                }
            }
            return(vals);
        }
Exemple #2
0
        public static IReadOnlyDictionary <ChangeReport, ChangeEmitResult> EmitAndSave(this ChangeSaver saver)
        {
            if (saver is null)
            {
                throw new System.ArgumentNullException(nameof(saver));
            }

            var vals = saver.Emit();

            foreach (var item in vals)
            {
                if (item.Value.SelectCondition != null)
                {
                    item.Value.SelectCondition.Save(item.Value.Report,
                                                    item.Value.Transfed);
                }
            }
            return(vals);
        }