db4o

IExtObjectContainer.ReplicationBegin Method 

prepares for replication with another Db4objects.Db4o.IObjectContainer .

An Db4objects.Db4o.IObjectContainer can only be involved in a replication process with one other Db4objects.Db4o.IObjectContainer at the same time.

The returned Db4objects.Db4o.Replication.IReplicationProcess interface provides methods to commit and to cancel the replication process.

This ObjectContainer will be "peerA" for the returned ReplicationProcess. The other ObjectContainer will be "peerB".

IReplicationProcess ReplicationBegin(
   IObjectContainer peerB,
   IReplicationConflictHandler conflictHandler
);

Parameters

peerB
the Db4objects.Db4o.IObjectContainer to replicate with.
conflictHandler
the conflict handler for this ReplicationProcess. Conflicts occur whenever Db4objects.Db4o.Replication.IReplicationProcess.Replicate is called with an object that was modified in both ObjectContainers since the last replication run between the two. Upon a conflict the Db4objects.Db4o.Replication.IReplicationConflictHandler.ResolveConflict method will be called in the conflict handler.

Return Value

the Db4objects.Db4o.Replication.IReplicationProcess interface for this replication process.

See Also

IExtObjectContainer Interface | Db4objects.Db4o.Ext Namespace