Ejemplo n.º 1
0
 private void CopyStateAcross(IReplicationReference sourceRef, IReplicationProviderInside
                              sourceProvider, IReplicationProviderInside targetProvider)
 {
     if (!sourceRef.IsMarkedForReplicating())
     {
         return;
     }
     CopyStateAcross(sourceRef.Object(), sourceRef.Counterpart(), sourceProvider, targetProvider
                     );
 }
Ejemplo n.º 2
0
        private void StoreChangedCounterpartInDestination(IReplicationReference reference
                                                          , IReplicationProviderInside destination)
        {
            //System.out.println("reference = " + reference);
            bool markedForReplicating = reference.IsMarkedForReplicating();

            //System.out.println("markedForReplicating = " + markedForReplicating);
            if (!markedForReplicating)
            {
                return;
            }
            destination.StoreReplica(reference.Counterpart());
        }
Ejemplo n.º 3
0
        private void CopyStateAcross(IReplicationReference sourceRef, IReplicationProviderInside
                                     sourceProvider, IReplicationProviderInside targetProvider)
        {
            if (!sourceRef.IsMarkedForReplicating())
            {
                return;
            }
            object source = sourceRef.Object();
            object target = sourceRef.Counterpart();

            if (source == null)
            {
                throw new InvalidOperationException("source may not be null");
            }
            if (target == null)
            {
                throw new InvalidOperationException("target may not be null");
            }
            CopyStateAcross(source, target, sourceProvider, targetProvider);
        }
Ejemplo n.º 4
0
		private void StoreChangedCounterpartInDestination(IReplicationReference reference
			, IReplicationProviderInside destination)
		{
			//System.out.println("reference = " + reference);
			bool markedForReplicating = reference.IsMarkedForReplicating();
			//System.out.println("markedForReplicating = " + markedForReplicating);
			if (!markedForReplicating)
			{
				return;
			}
			destination.StoreReplica(reference.Counterpart());
		}
Ejemplo n.º 5
0
		private void CopyStateAcross(IReplicationReference sourceRef, IReplicationProviderInside
			 sourceProvider, IReplicationProviderInside targetProvider)
		{
			if (!sourceRef.IsMarkedForReplicating())
			{
				return;
			}
			object source = sourceRef.Object();
			object target = sourceRef.Counterpart();
			if (source == null)
			{
				throw new InvalidOperationException("source may not be null");
			}
			if (target == null)
			{
				throw new InvalidOperationException("target may not be null");
			}
			CopyStateAcross(source, target, sourceProvider, targetProvider);
		}
		private void CopyStateAcross(IReplicationReference sourceRef, IReplicationProviderInside
			 sourceProvider, IReplicationProviderInside targetProvider)
		{
			if (!sourceRef.IsMarkedForReplicating())
			{
				return;
			}
			CopyStateAcross(sourceRef.Object(), sourceRef.Counterpart(), sourceProvider, targetProvider
				);
		}