diff --git a/src/Agent/NewRelic/Agent/Core/DataTransport/Client/HttpClientBase.cs b/src/Agent/NewRelic/Agent/Core/DataTransport/Client/HttpClientBase.cs index edcd759f0d..c619e8f9eb 100644 --- a/src/Agent/NewRelic/Agent/Core/DataTransport/Client/HttpClientBase.cs +++ b/src/Agent/NewRelic/Agent/Core/DataTransport/Client/HttpClientBase.cs @@ -3,8 +3,9 @@ using System; using System.Net; +#if !NETFRAMEWORK using System.Net.Http; -using System.Threading.Tasks; +#endif using NewRelic.Agent.Core.DataTransport.Client.Interfaces; using NewRelic.Agent.Extensions.Logging; diff --git a/src/Agent/NewRelic/Agent/Core/DataTransport/Client/Interfaces/IHttpClientWrapper.cs b/src/Agent/NewRelic/Agent/Core/DataTransport/Client/Interfaces/IHttpClientWrapper.cs index b8e7fdcc16..708180dd9e 100644 --- a/src/Agent/NewRelic/Agent/Core/DataTransport/Client/Interfaces/IHttpClientWrapper.cs +++ b/src/Agent/NewRelic/Agent/Core/DataTransport/Client/Interfaces/IHttpClientWrapper.cs @@ -1,6 +1,7 @@ -// Copyright 2020 New Relic, Inc. All rights reserved. +// Copyright 2020 New Relic, Inc. All rights reserved. // SPDX-License-Identifier: Apache-2.0 +#if !NETFRAMEWORK using System; using System.Net.Http; using System.Threading.Tasks; @@ -14,3 +15,4 @@ public interface IHttpClientWrapper : IDisposable TimeSpan Timeout { get; set; } } } +#endif