Show / Hide Table of Contents

Interface IConflictResolver

Conflict Resolver Interface

Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IConflictResolver

Methods

| Improve this Doc View Source

Resolve(Conflict)

The callback conflict resolve method, if conflict occurs. When a null document is returned, the conflict will be resolved as document deletion. If there is an exception thrown in the resolve method, the exception will be caught and handled:

  • 1. The conflict resolving will be skipped. The pending conflicted documents will be resolved when the replicator is restarted.
  • 2. The exception will be reported in the warning log.
  • 3. The exception will be reported in the DocumentReplicationChange event.

Declaration
Document Resolve(Conflict conflict)
Parameters
Type Name Description
Conflict conflict
Returns
Type Description
Document
Exceptions
Type Condition
System.InvalidOperationException

Thrown when a document from a different database is returned.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX