/// <exception cref="System.Exception"></exception> public virtual void SetUp() { _peerA = new TransientReplicationProvider(new byte[] { 0 }, "A"); _peerB = new TransientReplicationProvider(new byte[] { 1 }, "B"); ReplicationReflector reflector = new ReplicationReflector(_peerA, _peerB, null); _peerA.ReplicationReflector(reflector); _peerB.ReplicationReflector(reflector); }
internal MyReplicationReference(TransientReplicationProvider _enclosing, object @object ) { this._enclosing = _enclosing; if (@object == null) { throw new ArgumentException(); } this._object = @object; }
public virtual void Test() { Replicated obj1 = new Replicated("1"); Replicated obj2 = new Replicated("2"); Replicated obj3 = new Replicated("3"); obj1.SetLink(obj2); obj2.SetLink(obj3); obj3.SetLink(obj1); _peerA.StoreNew(obj1); //_peerA.transientProviderSpecificStore(obj2); //_peerA.transientProviderSpecificStore(obj3); IReplicationSession replication = new GenericReplicationSession(_peerA, _peerB); replication.Replicate(obj1); Assert.IsTrue(_peerA.ActivatedObjects().Contains(obj1)); Assert.IsTrue(_peerA.ActivatedObjects().Contains(obj2)); Assert.IsTrue(_peerA.ActivatedObjects().Contains(obj3)); _peerA = null; _peerB = null; }
public MyTraverser(TransientReplicationProvider _enclosing, ReplicationReflector reflector, Db4objects.Drs.Inside.ICollectionHandler collectionHandler) { this._enclosing = _enclosing; this._delegate = new GenericTraverser(reflector, collectionHandler); }
public MySignature(TransientReplicationProvider _enclosing, byte[] signature) { this._enclosing = _enclosing; this._bytes = signature; this.creatimeTime = Runtime.CurrentTimeMillis(); }
public _IVisitor_217(TransientReplicationProvider _enclosing) { this._enclosing = _enclosing; }