Add NETFRAMEWORK-specific usings to API files

Added conditional using directives for System.Net.Http, System.Threading, and System.Threading.Tasks in multiple API files. These usings are now included only when targeting .NET Framework, improving compatibility and preventing unnecessary imports on other platforms.
This commit is contained in:
2026-01-16 11:35:37 +01:00
parent 0149a77f21
commit 14532a15bf
7 changed files with 14 additions and 0 deletions

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{

View File

@@ -1,6 +1,8 @@
#if NETFRAMEWORK
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
#endif
namespace ReC.Client.Api
{