From e0e520eba13d0178a1753d9cab77d7aaae911148 Mon Sep 17 00:00:00 2001 From: Mateusz Skoczek Date: Mon, 4 Mar 2024 00:54:10 +0100 Subject: [PATCH] Delete VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network directory --- .../NetworkService.cs | 36 ------------------- .../VDownload.Services.Utility.Network.csproj | 13 ------- 2 files changed, 49 deletions(-) delete mode 100644 VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/NetworkService.cs delete mode 100644 VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/VDownload.Services.Utility.Network.csproj diff --git a/VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/NetworkService.cs b/VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/NetworkService.cs deleted file mode 100644 index 313d3f2..0000000 --- a/VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/NetworkService.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Windows.Networking.Connectivity; - -namespace VDownload.Services.Utility.Network -{ - public interface INetworkService - { - bool IsMetered { get; } - } - - - - public class NetworkService : INetworkService - { - #region FIELDS - - protected readonly IEnumerable _notMeteredTypes = [ - NetworkCostType.Unknown, - NetworkCostType.Unrestricted - ]; - - #endregion - - - - #region PROPERTIES - - public bool IsMetered => !_notMeteredTypes.Contains(NetworkInformation.GetInternetConnectionProfile().GetConnectionCost().NetworkCostType); - - #endregion - } -} diff --git a/VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/VDownload.Services.Utility.Network.csproj b/VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/VDownload.Services.Utility.Network.csproj deleted file mode 100644 index 3fe9a7d..0000000 --- a/VDownload.Services/VDownload.Services.Utility/VDownload.Services.Utility.Network/VDownload.Services.Utility.Network.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - net8.0 - enable - enable - - - - - - -