Skip to content

Commit 9d0336c

Browse files
committed
Fix compilation errors
1 parent 4c08a6e commit 9d0336c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/Elasticsearch.Net/Extensions/X509CertificateExtensions.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
namespace Elasticsearch.Net
1+
#if DOTNETCORE
2+
using System.Security.Cryptography.X509Certificates;
3+
#endif
4+
5+
namespace Elasticsearch.Net
26
{
37
internal static class X509CertificateExtensions
48
{
59
#if DOTNETCORE
610

7-
// https://referencesource.microsoft.com/#mscorlib/system/security/cryptography/x509certificates/x509certificate.cs,318
11+
// https://referencesource.microsoft.com/#mscorlib/system/security/cryptography/x509certificates/x509certificate.cs,318
812
internal static string GetCertHashString(this X509Certificate certificate)
913
{
1014
var bytes = certificate.GetCertHash();

src/Tests/Tests.Core/Client/Settings/TestConnectionSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ public TestConnectionSettings(
4040
private static string LocalHost => "localhost";
4141

4242
internal ConnectionSettings ApplyTestSettings() => EnableDebugMode()
43+
//TODO make this random
44+
//.EnableHttpCompression()
45+
#if DEBUG
46+
.EnableDebugMode()
4347
#endif
4448
.ConnectionLimit(ConnectionLimitDefault)
4549
.OnRequestCompleted(r =>

0 commit comments

Comments
 (0)