AsyncClientGet Method (Policy, CancellationToken, Key, String)

Aerospike
Asynchronously read record header and bins for specified key. Create listener, call asynchronous get and return task monitor.

The policy can be used to specify timeouts.

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 3.9.16.1 (3.9.16.1)
Syntax

C#
public Task<Record> Get(
	Policy policy,
	CancellationToken token,
	Key key,
	params string[] binNames
)

Parameters

policy
Type: Aerospike.ClientPolicy
generic configuration parameters, pass in null for defaults
token
Type: System.ThreadingCancellationToken
cancellation token
key
Type: Aerospike.ClientKey
unique record identifier
binNames
Type: SystemString
bins to retrieve

Return Value

Type: TaskRecord

Implements

IAsyncClientGet(Policy, CancellationToken, Key, String)
Exceptions

ExceptionCondition
AerospikeExceptionif queue is full
See Also

Reference