Beispiel #1
0
 public void RemoveSyncError(SyncError error)
 { 
 }
Beispiel #2
0
 public void AddSerializedError(SyncError error, IsolatedStorageOfflineContext context)
 {
 }
Beispiel #3
0
        /// <summary>
        /// Get the conflict item
        /// </summary>
        /// <returns>Conflict item</returns>
        public virtual Conflict GetConflict()
        {
            if (!HasConflict())
            {
                return null;
            }

            Conflict conflict;

            if (currentEntryWrapper.IsConflict)
            {
                conflict = new SyncConflict
                {
                    LiveEntity = liveEntity,
                    LosingEntity = ReflectionUtility.GetObjectForType(currentEntryWrapper.ConflictWrapper, knownTypes),
                    Resolution =
                        (SyncConflictResolution)
                        Enum.Parse(FormatterConstants.SyncConflictResolutionType,
                                    currentEntryWrapper.ConflictDesc, true)
                };
            }
            else
            {
                conflict = new SyncError
                {
                    LiveEntity = liveEntity,
                    ErrorEntity =
                        ReflectionUtility.GetObjectForType(currentEntryWrapper.ConflictWrapper,
                                                            knownTypes),
                    Description = currentEntryWrapper.ConflictDesc
                };
            }

            return conflict;
        }
Beispiel #4
0
        /// <summary>
        /// Get the conflict item
        /// </summary>
        /// <returns>Conflict item</returns>
        public virtual Conflict GetConflict()
        {
            if (!HasConflict())
            {
                return null;
            }

            Conflict conflict = null;

            if (_currentEntryWrapper.IsConflict)
            {
                conflict = new SyncConflict
                {
                    LiveEntity = _liveEntity,
                    LosingEntity = CreateEntity(_currentEntryWrapper.ConflictWrapper, _knownTypes),
                    Resolution = (SyncConflictResolution)Enum.Parse(FormatterConstants.SyncConflictResolutionType, _currentEntryWrapper.ConflictDesc, true)
                };
            }
            else
            {
                conflict = new SyncError
                {
                    LiveEntity = _liveEntity,
                    ErrorEntity = CreateEntity(_currentEntryWrapper.ConflictWrapper, _knownTypes),
                    Description = _currentEntryWrapper.ConflictDesc
                };
            }

            return conflict;
        }
Beispiel #5
0
 public void AddSerializedError(SyncError error, OfflineContext context)
 {
 }
Beispiel #6
0
 public void AddSyncError(SyncError error, OfflineContext context)
 {
 }