Example #1
0
 protected virtual void OnItemConstraint(object sender, ItemConstraintEventArgs ev)
 {
     if (ItemConstraint != null)
     {
         ItemConstraint(sender, ev);
     }
 }
Example #2
0
 /// <summary>
 /// This method is called when there are constraint items during synchronization
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private static void OnItemConstraint(object sender, ItemConstraintEventArgs args)
 {
     args.SetResolutionAction(ConstraintConflictResolutionAction.Merge);
 }
Example #3
0
 private static void OnItemConstraint(object sender, ItemConstraintEventArgs args)
 {
     args.SetResolutionAction(ConstraintConflictResolutionAction.SourceWins);
     Console.WriteLine("Constraint conflict detected for item {0}", args.DestinationChange.ItemId.ToString());
 }
 /// <summary>
 /// This method is called when there are constraint items during synchronization
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private static void OnItemConstraint(object sender, ItemConstraintEventArgs args)
 {
     args.SetResolutionAction(ConstraintConflictResolutionAction.Merge);
 }
Example #5
0
 private void OnFileSystemItemConstraint(object sender, ItemConstraintEventArgs ev)
 {
     throw new NotImplementedException();
 }
Example #6
0
 private void OnDbItemConstraint(object sender, ItemConstraintEventArgs ev)
 {
     FotoShoutUtils.Log.LogManager.Error(_logger, string.Format("Item constraint conflict: {0}, {1}, {2}, {3}.", ev.SourceChange.ToString(), ev.SourceChangeData.ToString(), ev.DestinationChange.ToString(), ev.DestinationChangeData.ToString()));
 }
Example #7
0
 private void OnItemConstraint(object sender, ItemConstraintEventArgs args)
 {
     args.SetResolutionAction(ConstraintConflictResolutionAction.SourceWins);
     //Console.WriteLine("-- Constraint conflict detected for item " + args.DestinationChange.ItemId.ToString());
     if (logger != null)
     {
         logger.Info("-- Constraint conflict detected for item " + args.DestinationChange.ItemId.ToString());
     }
 }
        //private static void Program_ItemChangeSkipped(object sender, ItemChangeSkippedEventArgs e)
        //{
        //    // display conflict type
        //}

        //private static void Program_ProgressChange(object sender, SyncStagedProgressEventArgs e)
        //{
        //    // display conflict type
        //    Console.WriteLine(e.TotalWork.ToString());
        //}

        //private static void Program_RemoteItemChanging(object sender, ItemChangingEventArgs e)
        //{
        //    // display conflict type
        //    Console.WriteLine(e.Item.ChangeKind);
        //}

        //private static void Program_RemoteItemConflicting(object sender, ItemConflictingEventArgs e)
        //{
        //    // display conflict type
        //    Console.WriteLine(e.SourceChange.ChangeKind.ToString());
        //}


        private static void Program_ItemConstraint(object sender, ItemConstraintEventArgs e)
        {
            // display conflict type
            Console.WriteLine(e.SourceChange.ChangeKind.ToString());
        }
Example #9
0
 static void destCallbacks_ItemConstraint(object sender, ItemConstraintEventArgs e)
 {
     e.SetResolutionAction(ConstraintConflictResolutionAction.SourceWins);
     Console.WriteLine("-- Constraint conflict detected for item " + e.DestinationChange.ItemId.ToString());
 }