コード例 #1
0
 public GenericReplicationSession(IReplicationProvider providerA, IReplicationProvider
                                  providerB, IReplicationEventListener listener, IReflector reflector)
 {
     //null means bidirectional replication.
     _reflector         = new ReplicationReflector(providerA, providerB, reflector);
     _collectionHandler = new CollectionHandlerImpl(_reflector);
     _traverser         = new GenericTraverser(_reflector, _collectionHandler);
     _providerA         = (IReplicationProviderInside)providerA;
     _providerB         = (IReplicationProviderInside)providerB;
     _listener          = listener;
     RunIsolated(new _IBlock4_73(this));
 }
コード例 #2
0
		public GenericReplicationSession(IReplicationProvider providerA, IReplicationProvider
			 providerB, IReplicationEventListener listener, IReflector reflector)
		{
			//null means bidirectional replication.
			_reflector = new ReplicationReflector(providerA, providerB, reflector);
			_collectionHandler = new CollectionHandlerImpl(_reflector);
			_traverser = new GenericTraverser(_reflector, _collectionHandler);
			_providerA = (IReplicationProviderInside)providerA;
			_providerB = (IReplicationProviderInside)providerB;
			_listener = listener;
			RunIsolated(new _IBlock4_73(this));
		}
コード例 #3
0
		public GenericReplicationSession(IReplicationProvider providerA, IReplicationProvider
			 providerB, IReplicationEventListener listener, IReflector reflector)
		{
			//null means bidirectional replication.
			_reflector = new ReplicationReflector(providerA, providerB, reflector);
			_collectionHandler = new CollectionHandlerImpl(_reflector);
			_traverser = new GenericTraverser(_reflector, _collectionHandler);
			_providerA = (IReplicationProviderInside)providerA;
			_providerB = (IReplicationProviderInside)providerB;
			_listener = listener;
			_providerA.StartReplicationTransaction(_providerB.GetSignature());
			_providerB.StartReplicationTransaction(_providerA.GetSignature());
			long syncedTimeStamp = Math.Max(_providerA.TimeStamps().Commit(), _providerB.TimeStamps
				().Commit());
			_providerA.SyncCommitTimestamp(syncedTimeStamp);
			_providerB.SyncCommitTimestamp(syncedTimeStamp);
		}
コード例 #4
0
        public GenericReplicationSession(IReplicationProvider providerA, IReplicationProvider
                                         providerB, IReplicationEventListener listener, IReflector reflector)
        {
            //null means bidirectional replication.
            _reflector         = new ReplicationReflector(providerA, providerB, reflector);
            _collectionHandler = new CollectionHandlerImpl(_reflector);
            _traverser         = new GenericTraverser(_reflector, _collectionHandler);
            _providerA         = (IReplicationProviderInside)providerA;
            _providerB         = (IReplicationProviderInside)providerB;
            _listener          = listener;
            _providerA.StartReplicationTransaction(_providerB.GetSignature());
            _providerB.StartReplicationTransaction(_providerA.GetSignature());
            long syncedTimeStamp = Math.Max(_providerA.TimeStamps().Commit(), _providerB.TimeStamps
                                                ().Commit());

            _providerA.SyncCommitTimestamp(syncedTimeStamp);
            _providerB.SyncCommitTimestamp(syncedTimeStamp);
        }
コード例 #5
0
 internal InstanceReplicationPreparer(IReplicationProviderInside providerA, IReplicationProviderInside
                                      providerB, IReplicationProvider directionTo, IReplicationEventListener listener
                                      , bool isReplicatingOnlyDeletions, HashSet4 uuidsProcessedInSession, ITraverser
                                      traverser, ReplicationReflector reflector, Db4objects.Drs.Inside.ICollectionHandler
                                      collectionHandler)
 {
     _event       = new ReplicationEventImpl();
     _stateInA    = _event._stateInProviderA;
     _stateInB    = _event._stateInProviderB;
     _providerA   = providerA;
     _providerB   = providerB;
     _directionTo = directionTo;
     _listener    = listener;
     _isReplicatingOnlyDeletions = isReplicatingOnlyDeletions;
     _uuidsProcessedInSession    = uuidsProcessedInSession;
     _traverser         = traverser;
     _reflector         = reflector;
     _collectionHandler = collectionHandler;
 }
コード例 #6
0
		internal InstanceReplicationPreparer(IReplicationProviderInside providerA, IReplicationProviderInside
			 providerB, IReplicationProvider directionTo, IReplicationEventListener listener
			, bool isReplicatingOnlyDeletions, long lastReplicationVersion, HashSet4 uuidsProcessedInSession
			, ITraverser traverser, ReplicationReflector reflector, Db4objects.Drs.Inside.ICollectionHandler
			 collectionHandler)
		{
			_event = new ReplicationEventImpl();
			_stateInA = _event._stateInProviderA;
			_stateInB = _event._stateInProviderB;
			_providerA = providerA;
			_providerB = providerB;
			_directionTo = directionTo;
			_listener = listener;
			_isReplicatingOnlyDeletions = isReplicatingOnlyDeletions;
			_lastReplicationVersion = lastReplicationVersion;
			_uuidsProcessedInSession = uuidsProcessedInSession;
			_traverser = traverser;
			_reflector = reflector;
			_collectionHandler = collectionHandler;
		}
コード例 #7
0
		public CollectionHandlerImpl(ReplicationReflector reflector)
		{
			_mapHandler = new MapHandler(reflector);
			_reflector = reflector;
		}
コード例 #8
0
 public CollectionHandlerImpl(ReplicationReflector reflector)
 {
     _mapHandler = new MapHandler(reflector);
     _reflector  = reflector;
 }
コード例 #9
0
 public MyTraverser(TransientReplicationProvider _enclosing, ReplicationReflector
                    reflector, Db4objects.Drs.Inside.ICollectionHandler collectionHandler)
 {
     this._enclosing = _enclosing;
     this._delegate  = new GenericTraverser(reflector, collectionHandler);
 }