Table of Contents

Method AsyncSession

Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll

AsyncSession()

Obtain a session with the default SessionConfig.

IAsyncSession AsyncSession()

Returns

IAsyncSession

An IAsyncSession that could be used to execute queries.

AsyncSession(Action<SessionConfigBuilder>)

Obtain a session with the customized SessionConfig.

IAsyncSession AsyncSession(Action<SessionConfigBuilder> action)

Parameters

action Action<SessionConfigBuilder>

An action, provided with a SessionConfigBuilder instance, that should populate the provided instance with desired SessionConfig.

Returns

IAsyncSession

An IAsyncSession that could be used to execute queries.