Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 public SyncProviderException(Exception innerException, SaveChangeAction saveChangeAction)
     : base(saveChangeAction.ToString(), innerException)
 {
     SaveChangeAction = saveChangeAction;
 }
Ejemplo n.º 3
0
 public SyncProviderException(Exception innerException, SaveChangeAction saveChangeAction)
     : base(saveChangeAction.ToString(), innerException)
 {
     SaveChangeAction = saveChangeAction;
 }