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
247247
248248 internal static void ApplyConnectionOptions ( this NpgsqlConnection connection , PostgresqlConnectionOptions connectionOptions )
249249 {
250- if ( connectionOptions ? . ClientCertificate != null )
250+ connection . SslClientAuthenticationOptionsCallback = options =>
251251 {
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+ } ;
259258 }
260259}
Original file line number Diff line number Diff line change 66 <Company >DbUp Contributors</Company >
77 <Product >DbUp</Product >
88 <Copyright >Copyright © DbUp Contributors 2015</Copyright >
9- <TargetFramework >netstandard2 .0</TargetFramework >
9+ <TargetFramework >net8 .0</TargetFramework >
1010 <AssemblyName >dbup-postgresql</AssemblyName >
1111 <RootNamespace >DbUp.Postgresql</RootNamespace >
1212 <PackageId >dbup-postgresql</PackageId >
2424
2525 <ItemGroup >
2626 <PackageReference Include =" dbup-core" Version =" 6.0.4" />
27- <PackageReference Include =" Npgsql" Version =" 8 .0.3 " />
27+ <PackageReference Include =" Npgsql" Version =" 9 .0.2 " />
2828 </ItemGroup >
2929
3030 <ItemGroup >
You can’t perform that action at this time.
0 commit comments