InternetServices.cs 445 B

1234567891011121314151617
  1. using Windows.Networking.Connectivity;
  2. using FormulaOneApp.Classic.Core.Services.Internet;
  3. namespace FormulaOneApp.Classic.Windows.Services.Internet
  4. {
  5. public class InternetService : IInternetService
  6. {
  7. /// <summary>
  8. ///
  9. /// </summary>
  10. /// <returns></returns>
  11. public bool HasConnection()
  12. {
  13. return NetworkInformation.GetInternetConnectionProfile() != null;
  14. }
  15. }
  16. }