/// <summary> /// Schedule the given set of bindings for rebinding when the transaction completes /// </summary> /// <param name="cpc"></param> /// <param name="bindingsToRebind"></param> internal static void ScheduleBindingsForRebind(CommandProcessorContext cpc, ICollection<ItemBinding> bindingsToRebind) { Debug.Assert(cpc != null); Debug.Assert(bindingsToRebind != null); if (bindingsToRebind.Count > 0) { var check = new CheckArtifactBindings(cpc); cpc.AddIntegrityCheck(check); foreach (var ib in bindingsToRebind) { cpc.AddBindingForRebind(ib); } } }
/// <summary> /// Schedule the given set of bindings for rebinding when the transaction completes /// </summary> /// <param name="cpc"></param> /// <param name="bindingsToRebind"></param> internal static void ScheduleBindingsForRebind(CommandProcessorContext cpc, ICollection <ItemBinding> bindingsToRebind) { Debug.Assert(cpc != null); Debug.Assert(bindingsToRebind != null); if (bindingsToRebind.Count > 0) { var check = new CheckArtifactBindings(cpc); cpc.AddIntegrityCheck(check); foreach (var ib in bindingsToRebind) { cpc.AddBindingForRebind(ib); } } }