public void Dispose()
            {
                var session = Interlocked.Exchange(ref _session, null);

                if (session != null)
                {
                    _connection.ReleaseSession(session);
                }
            }
Пример #2
0
            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);
                }
            }