diff --git a/src/CouchDB.Driver/ICouchClient.cs b/src/CouchDB.Driver/ICouchClient.cs index f0b43aa..2d4d1ec 100644 --- a/src/CouchDB.Driver/ICouchClient.cs +++ b/src/CouchDB.Driver/ICouchClient.cs @@ -164,6 +164,30 @@ Task> GetOrCreateDatabaseAsync(int? shards = nu /// A task that represents the asynchronous operation. The task result contains the sequence of all active tasks. Task> GetActiveTasksAsync(CancellationToken cancellationToken = default); + /// + /// Configures a database replication operation. + /// + /// Fully qualified source database URL or an object which contains the full URL of the source database with additional parameters like headers. + /// Fully qualified target database URL or an object which contains the full URL of the target database with additional parameters like headers. + /// An instance of . + /// Persist the operation to the replication database. + /// A to observe while waiting for the task to complete. + /// Returns True if the operation succeeded, False otherwise. + Task ReplicateAsync(string source, string target, CouchReplication? replication = null, + bool persistent = true, CancellationToken cancellationToken = default); + + /// + /// Removes a database replication operation. + /// + /// Fully qualified source database URL or an object which contains the full URL of the source database with additional parameters like headers. + /// Fully qualified target database URL or an object which contains the full URL of the target database with additional parameters like headers. + /// An instance of . + /// + /// A to observe while waiting for the task to complete. + /// Returns True if the operation succeeded, False otherwise. + Task RemoveReplicationAsync(string source, string target, CouchReplication? replication = null, + bool persistent = true, CancellationToken cancellationToken = default); + /// /// Get the database name for the given type. ///