using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.FSE.BL.Connectivity
{
///
/// Represents an Internet connection validation provider.
///
public interface IConnectivityProvider
{
///
/// Gets or sets the connectivity verification method.
///
ConnectivityVerificationMethod VerificationMethod { get; set; }
///
/// Gets a value indicating whether the system has an active Internet connection currently.
///
bool IsOnline { get; }
///
/// Checks whether the system has an active Internet connection.
///
///
bool CheckOnline();
///
/// Checks whether the system has an active Internet connection.
///
///
Task CheckOnlineAsync();
///
/// Throws an exception if there is no Internet connection.
///
void ThrowIfNoInternet();
}
}