protected virtual void OnItemChangeSkipped(object sender, ItemChangeSkippedEventArgs args) { EventHandler <ItemChangeSkippedEventArgs> tmp = ItemChangeSkipped; if (tmp != null) { _skippedItems.Add(args.ItemChange); tmp(this, args); } }
/// <summary> /// Called when [sync item change skiped]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="Microsoft.Synchronization.ItemChangeSkippedEventArgs"/> instance containing the event data.</param> protected virtual void OnSyncItemChangeSkiped(object sender, ItemChangeSkippedEventArgs args) { if (_syncApp.CurrentProcessedSyncType == null) { throw new NullReferenceException("CurrentProcessedSyncType"); } SaveChangeAction changeAction = (SaveChangeAction)Enum.Parse(typeof(SaveChangeAction), args.ItemRecoverableErrorData.ItemDisplayName); string debugStr = string.Format("Item change skiped: {0} in stage - {1} provider position - {2} for action {3} error detail {4}", args.ItemRecoverableErrorData.ItemDisplayName, args.Stage.ToString(), args.ReportingProvider.ToString(), changeAction.ToString(), args.ItemRecoverableErrorData.ErrorDescription); DebugAssistant.Log(debugStr); }
protected virtual void OnItemChangeSkipped(object sender, ItemChangeSkippedEventArgs args) { EventHandler<ItemChangeSkippedEventArgs> tmp = ItemChangeSkipped; if (tmp != null) { _skippedItems.Add(args.ItemChange); tmp(this, args); } }
/// <summary> /// Called when [sync item change skiped]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="Microsoft.Synchronization.ItemChangeSkippedEventArgs"/> instance containing the event data.</param> protected virtual void OnSyncItemChangeSkiped(object sender, ItemChangeSkippedEventArgs args) { if (_syncApp.CurrentProcessedSyncType == null) { throw new NullReferenceException("CurrentProcessedSyncType"); } SaveChangeAction changeAction = (SaveChangeAction)Enum.Parse(typeof(SaveChangeAction), args.ItemRecoverableErrorData.ItemDisplayName); string debugStr = string.Format("Item change skiped: {0} in stage - {1} provider position - {2} for action {3} error detail {4}", args.ItemRecoverableErrorData.ItemDisplayName, args.Stage.ToString(), args.ReportingProvider.ToString(), changeAction.ToString(), args.ItemRecoverableErrorData.ErrorDescription); DebugAssistant.Log(debugStr); }
private static void Program_ItemChangeSkipped(object sender, ItemChangeSkippedEventArgs e) { }
static void DestinationCallbacks_ItemChangeSkipped(object sender, ItemChangeSkippedEventArgs e) { Console.Write("Event Item Change Skipped: provider {0}, ", e.ReportingProvider.ToString()); Console.Write("stage - {0}, ", e.Stage.ToString()); Console.WriteLine("item - {0} ", e.ItemChange.ItemId.ToString()); }
private static void Program_ItemChangeSkipped(object sender, ItemChangeSkippedEventArgs e) { // display conflict type }
static void DestinationCallbacks_ItemChangeSkipped(object sender, ItemChangeSkippedEventArgs e) { Console.Write("Event Item Change Skipped: provider {0}, ", e.ReportingProvider.ToString()); Console.Write("stage - {0}, ", e.Stage.ToString()); Console.WriteLine("item - {0} ", e.ItemChange.ItemId.ToString()); }