Skip to content

Commit a70c8ea

Browse files
init commit
1 parent 0c81bea commit a70c8ea

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/Ydb.Sdk/src/Pool/ChannelPool.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
using Microsoft.Extensions.Logging;
88
using Org.BouncyCastle.Security;
99

10+
#if TEST
11+
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
12+
#endif
13+
1014
namespace Ydb.Sdk.Pool;
1115

1216
internal class ChannelPool<T> : IAsyncDisposable where T : ChannelBase, IDisposable

src/Ydb.Sdk/src/Services/Auth/AuthClient.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ public async Task<LoginResponse> Login(string user, string? password, LoginSetti
3737

3838
try
3939
{
40-
await using var transport = new AuthGrpcChannelDriver(_config, _grpcChannelFactory, _loggerFactory);
40+
await using var driver = Driver;
4141

42-
var response = await transport.UnaryCall(
42+
var response = await driver.UnaryCall(
4343
method: AuthService.LoginMethod,
4444
request: request,
4545
settings: settings
@@ -61,6 +61,8 @@ public async Task<LoginResponse> Login(string user, string? password, LoginSetti
6161
return new LoginResponse(e.Status);
6262
}
6363
}
64+
65+
private IDriver Driver => new AuthGrpcChannelDriver(_config, _grpcChannelFactory, _loggerFactory);
6466
}
6567

6668
public class LoginSettings : OperationSettings

src/Ydb.Sdk/src/Services/Table/CreateSession.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private ResultData(Session session)
2626

2727
public Session Session { get; }
2828

29-
internal static ResultData FromProto(CreateSessionResult resultProto, Driver driver)
29+
internal static ResultData FromProto(CreateSessionResult resultProto, IDriver driver)
3030
{
3131
var session = new Session(
3232
driver: driver,

0 commit comments

Comments
 (0)