Esempio n. 1
0
        public void Initialize(DatabaseRecord record)
        {
            if (_isInitialized) //precaution -> probably not necessary, but still...
            {
                return;
            }

            ConflictSolverConfig = record.ConflictSolverConfig;
            ConflictResolver     = new ResolveConflictOnReplicationConfigurationChange(this, _log);
            ConflictResolver.RunConflictResolversOnce();
            _isInitialized.Raise();
        }
Esempio n. 2
0
 public ConflictManager(DocumentDatabase database, ResolveConflictOnReplicationConfigurationChange conflictResolver)
 {
     _conflictResolver = conflictResolver;
     _database         = database;
     _log = LoggingSource.Instance.GetLogger <ConflictManager>(_database.Name);
 }