Click or drag to resize

IAsyncSessionReadTransactionAsync Method (FuncIAsyncTransaction, Task, ActionTransactionConfigBuilder)

Asynchronously execute given unit of work in a Read transaction with a specific TransactionConfig.

Namespace:  Neo4j.Driver
Assembly:  Neo4j.Driver (in Neo4j.Driver.dll) Version: 4.1.0
Syntax
Task ReadTransactionAsync(
	Func<IAsyncTransaction, Task> work,
	Action<TransactionConfigBuilder> action
)

Parameters

work
Type: SystemFuncIAsyncTransaction, Task
The FuncT, TResult to be applied to a new read transaction.
action
Type: SystemActionTransactionConfigBuilder
Given a TransactionConfigBuilder, defines how to set the configurations for the new transaction. This configuration overrides server side default transaction configurations. See TransactionConfig

Return Value

Type: Task
A task representing the completion of the transactional read operation enclosing the given unit of work.
See Also