Neo4jClient 和异步事务

Neo4jClient and async transactions

我正在实施 Neo4jClient 以使用异步事务并且 wiki 说:

To use the TransactionScope with async, assuming you're compiling against .NET >4.5.1 or higher, you construct the TransactionScope using the >TransactionScopeAsyncFlowOption parameter:

using (var scope = new > TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
{
    await client.Cypher.Create("(n:Tx {Name:'Test'})").ExecuteWithoutResultsAsync();
    scope.Complete();
}

但我找不到对 TransactionScope 的引用。我目前有:

using (ITransaction transaction = _client.BeginTransaction(TransactionScopeOption.RequiresNew))
{
    _client.Create(.....);
    transaction.Commit();
}

这是处理异步事务的正确方法吗?

谢谢

TransactionScopeSystem.Transactions.TransactionScope