Performs 'observe' on a given key to ensure that it's durability requirements with respect to persistence and replication are satisfied asynchronously.
Namespace: CouchbaseAssembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic Task<ObserveResponse> ObserveAsync(
string key,
ulong cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
)
public Task<ObserveResponse> ObserveAsync(
string key,
ulong cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
)
Public Function ObserveAsync (
key As String,
cas As ULong,
deletion As Boolean,
replicateTo As ReplicateTo,
persistTo As PersistTo
) As Task(Of ObserveResponse)
Public Function ObserveAsync (
key As String,
cas As ULong,
deletion As Boolean,
replicateTo As ReplicateTo,
persistTo As PersistTo
) As Task(Of ObserveResponse)
public:
virtual Task<ObserveResponse>^ ObserveAsync(
String^ key,
unsigned long long cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
) sealed
public:
virtual Task<ObserveResponse>^ ObserveAsync(
String^ key,
unsigned long long cas,
bool deletion,
ReplicateTo replicateTo,
PersistTo persistTo
) sealed
abstract ObserveAsync :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> Task<ObserveResponse>
override ObserveAsync :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> Task<ObserveResponse>
abstract ObserveAsync :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> Task<ObserveResponse>
override ObserveAsync :
key : string *
cas : uint64 *
deletion : bool *
replicateTo : ReplicateTo *
persistTo : PersistTo -> Task<ObserveResponse>
Parameters
- key
- Type: System.String
The key to 'observe'.
- cas
- Type: System.UInt64
The 'Check and Set' or CAS value for the key.
- deletion
- Type: System.Boolean
True if the operation performed is a 'remove' operation.
- replicateTo
- Type: Couchbase.ReplicateTo
The durability requirement for replication.
- persistTo
- Type: Couchbase.PersistTo
The durability requirement for persistence.
Return Value
Type:
Task<ObserveResponse>
An
Task<TResult> value indicating if the durability requirement were or were not met.
Implements
IBucket.ObserveAsync(String, UInt64, Boolean, ReplicateTo, PersistTo)
See Also