File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -247,14 +247,13 @@ public static UpgradeEngineBuilder JournalToPostgresqlTable(this UpgradeEngineBu
247
247
248
248
internal static void ApplyConnectionOptions ( this NpgsqlConnection connection , PostgresqlConnectionOptions connectionOptions )
249
249
{
250
- if ( connectionOptions ? . ClientCertificate != null )
250
+ connection . SslClientAuthenticationOptionsCallback = options =>
251
251
{
252
- connection . ProvideClientCertificatesCallback +=
253
- certs => certs . Add ( connectionOptions . ClientCertificate ) ;
254
- }
255
- if ( connectionOptions ? . UserCertificateValidationCallback != null )
256
- {
257
- connection . UserCertificateValidationCallback = connectionOptions . UserCertificateValidationCallback ;
258
- }
252
+ if ( connectionOptions ? . ClientCertificate != null )
253
+ options . ClientCertificates = new X509Certificate2Collection ( connectionOptions . ClientCertificate ) ;
254
+
255
+ if ( connectionOptions ? . UserCertificateValidationCallback != null )
256
+ options . RemoteCertificateValidationCallback = connectionOptions . UserCertificateValidationCallback ;
257
+ } ;
259
258
}
260
259
}
Original file line number Diff line number Diff line change 6
6
<Company >DbUp Contributors</Company >
7
7
<Product >DbUp</Product >
8
8
<Copyright >Copyright © DbUp Contributors 2015</Copyright >
9
- <TargetFramework >netstandard2 .0</TargetFramework >
9
+ <TargetFramework >net8 .0</TargetFramework >
10
10
<AssemblyName >dbup-postgresql</AssemblyName >
11
11
<RootNamespace >DbUp.Postgresql</RootNamespace >
12
12
<PackageId >dbup-postgresql</PackageId >
24
24
25
25
<ItemGroup >
26
26
<PackageReference Include =" dbup-core" Version =" 6.0.4" />
27
- <PackageReference Include =" Npgsql" Version =" 8 .0.3 " />
27
+ <PackageReference Include =" Npgsql" Version =" 9 .0.2 " />
28
28
</ItemGroup >
29
29
30
30
<ItemGroup >
You can’t perform that action at this time.
0 commit comments