Skip to content

Commit 81af4ed

Browse files
committed
Fix compilation errors
1 parent 640a11c commit 81af4ed

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Elasticsearch.Net/Extensions/X509CertificateExtensions.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
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
{

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public TestConnectionSettings(Func<ICollection<Uri>, IConnectionPool> createPool
3636
private static string LocalHost => "localhost";
3737

3838
internal ConnectionSettings ApplyTestSettings() => EnableDebugMode()
39+
//TODO make this random
40+
//.EnableHttpCompression()
41+
#if DEBUG
42+
.EnableDebugMode()
3943
#endif
4044
.ConnectionLimit(ConnectionLimitDefault)
4145
.OnRequestCompleted(r =>

0 commit comments

Comments
 (0)