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 - - - - - - -