File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11using System . Data ;
22using Internal ;
33using Ydb . Sdk . Ado ;
4+ using Ydb . Sdk . Ado . RetryPolicy ;
45
56namespace AdoNet ;
67
@@ -9,7 +10,11 @@ public class SloTableContext : SloTableContext<YdbDataSource>
910 protected override string Job => "AdoNet" ;
1011
1112 protected override YdbDataSource CreateClient ( Config config ) => new (
12- new YdbConnectionStringBuilder ( config . ConnectionString ) { LoggerFactory = ISloContext . Factory }
13+ new YdbConnectionStringBuilder ( config . ConnectionString )
14+ {
15+ LoggerFactory = ISloContext . Factory ,
16+ RetryPolicy = new YdbRetryPolicy ( new YdbRetryPolicyConfig { EnableRetryIdempotence = true } )
17+ }
1318 ) ;
1419
1520 protected override async Task Create ( YdbDataSource client , int operationTimeout )
Original file line number Diff line number Diff line change 11using Dapper ;
22using Internal ;
33using Ydb . Sdk . Ado ;
4+ using Ydb . Sdk . Ado . RetryPolicy ;
45
56namespace AdoNet . Dapper ;
67
@@ -9,7 +10,11 @@ public class SloTableContext : SloTableContext<YdbDataSource>
910 protected override string Job => "Dapper" ;
1011
1112 protected override YdbDataSource CreateClient ( Config config ) => new (
12- new YdbConnectionStringBuilder ( config . ConnectionString ) { LoggerFactory = ISloContext . Factory }
13+ new YdbConnectionStringBuilder ( config . ConnectionString )
14+ {
15+ LoggerFactory = ISloContext . Factory ,
16+ RetryPolicy = new YdbRetryPolicy ( new YdbRetryPolicyConfig { EnableRetryIdempotence = true } )
17+ }
1318 ) ;
1419
1520 protected override async Task Create ( YdbDataSource client , int operationTimeout )
You can’t perform that action at this time.
0 commit comments