public void Dispose() { var session = Interlocked.Exchange(ref _session, null); if (session != null) { _connection.ReleaseSession(session); } }
public void Dispose() { var session = Interlocked.Exchange(ref _session, null); if (session != null) { // TODO: Check there's always a client at this point. _connection.ReleaseSession(session, _connection.SpannerClient); } }