We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04050d6 commit 274a0e3Copy full SHA for 274a0e3
src/Ydb.Sdk/src/Ado/Session/ImplicitSessionSource.cs
@@ -3,14 +3,12 @@ namespace Ydb.Sdk.Ado.Session;
3
internal sealed class ImplicitSessionSource : ISessionSource
4
{
5
private readonly IDriver _driver;
6
- private readonly Action? _onBecameEmpty;
7
private int _isDisposed;
8
private int _activeLeaseCount;
9
10
- internal ImplicitSessionSource(IDriver driver, Action? onEmpty = null)
+ internal ImplicitSessionSource(IDriver driver)
11
12
_driver = driver;
13
- _onBecameEmpty = onEmpty;
14
}
15
16
public ValueTask<ISession> OpenSession(CancellationToken cancellationToken)
@@ -52,6 +50,5 @@ public async ValueTask DisposeAsync()
52
50
53
51
54
await _driver.DisposeAsync();
55
- _onBecameEmpty?.Invoke();
56
57
0 commit comments