AsyncClientProxyQuery(QueryPolicy, CancellationToken, Statement, ActionKey, Record) Method

Execute query and call action for each record returned from server.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public Task Query(
	QueryPolicy policy,
	CancellationToken token,
	Statement statement,
	Action<Key, Record> action
)

Parameters

policy  QueryPolicy
generic configuration parameters, pass in null for defaults
token  CancellationToken
cancellation token
statement  Statement
query definition
action  ActionKey, Record
action methods to be called for each record

Return Value

Task

Exceptions

AerospikeExceptionif query fails

See Also