diff --git a/Neo4j.Driver/Neo4j.Driver.IntegrationTests/DirectDriverIT.cs b/Neo4j.Driver/Neo4j.Driver.IntegrationTests/DirectDriverIT.cs index 0f54b9a40..033174ba7 100644 --- a/Neo4j.Driver/Neo4j.Driver.IntegrationTests/DirectDriverIT.cs +++ b/Neo4j.Driver/Neo4j.Driver.IntegrationTests/DirectDriverIT.cs @@ -772,4 +772,12 @@ public async void ShouldThrowExceptionIfErrorAfterResetButNotConsumed() } } } + internal static class SessionExtension + { + public static void Reset(this ISession session) + { + var sessionWithReset = (Session)session; + sessionWithReset.Reset(); + } + } } \ No newline at end of file diff --git a/Neo4j.Driver/Neo4j.Driver/Internal/Session.cs b/Neo4j.Driver/Neo4j.Driver/Internal/Session.cs index 5bdaf7389..8c20ac068 100644 --- a/Neo4j.Driver/Neo4j.Driver/Internal/Session.cs +++ b/Neo4j.Driver/Neo4j.Driver/Internal/Session.cs @@ -173,7 +173,10 @@ private void EnsureNoOpenTransaction() public Guid Id { get; } = Guid.NewGuid(); - public void Reset() + /// + /// Internal use only. + /// + internal void Reset() { EnsureSessionIsOpen(); EnsureConnectionIsHealthy(); diff --git a/Neo4j.Driver/Neo4j.Driver/V1/ISession.cs b/Neo4j.Driver/Neo4j.Driver/V1/ISession.cs index a5ed83f7d..25aef90a3 100644 --- a/Neo4j.Driver/Neo4j.Driver/V1/ISession.cs +++ b/Neo4j.Driver/Neo4j.Driver/V1/ISession.cs @@ -57,14 +57,6 @@ public interface ISession : IStatementRunner /// If no bookmark was received or if this transaction was rolled back, the bookmark value will be null. /// string LastBookmark { get; } - - /// - /// Reset the current session. This sends an immediate RESET signal to the server which both interrupts - /// any statement that is currently executing and ignores any subsequently queued statements.Following - /// the reset, the current transaction will have been rolled back and any outstanding failures will - /// have been acknowledged. - /// - void Reset(); } ///