示例#1
0
        /// <summary>
        /// Called when an error occurs in the synchronization process. Returns true if the error is handled.
        /// </summary>
        /// <param name="exception">The exception that was thrown.</param>
        /// <returns>True if the error is handled.</returns>
        protected virtual bool OnError(Exception exception)
        {
            // First pass to handlers
            var synchronizationError = new SynchronizationError(typeof(T1), typeof(T2), exception);

            OnSynchronizationError(synchronizationError);
            return(synchronizationError.IsHandled);
        }
示例#2
0
 protected virtual void OnSynchronizationError(SynchronizationError eventArgs)
 {
     SynchronizationError?.Invoke(eventArgs);
 }