db4o

IReplicationConflictHandler.ResolveConflict Method 

the callback method to be implemented to resolve a conflict.

object ResolveConflict(
   IReplicationProcess replicationProcess,
   object a,
   object b
);

Parameters

replicationProcess
the Db4objects.Db4o.Replication.IReplicationProcess for which this ReplicationConflictHandler is registered
a
the object modified in the peerA ObjectContainer
b
the object modified in the peerB ObjectContainer

Return Value

the object (a or b) that should prevail in the conflict or null, if no action is to be taken. If this would violate the direction set with Db4objects.Db4o.Replication.IReplicationProcess.SetDirection no action will be taken.

Remarks

the callback method to be implemented to resolve a conflict.

See Also

IReplicationConflictHandler Interface | Db4objects.Db4o.Replication Namespace | Db4objects.Db4o.Replication.IReplicationProcess.PeerA | Db4objects.Db4o.Replication.IReplicationProcess.PeerB