public VacationsViewModel ( IVacationManager vacationManager, ILocalizeService localizer, INetworkReachability networkReachability ) { _vacationManager = vacationManager; this.Localaizer = localizer; _networkReachability = networkReachability; LocalizationModel(); }
public LoginViewModel(ILoginManager userManager, ILocalizeService localizer, INetworkReachability networkReachability, IPlatformException platformException, IConfiguration config ) { _userManager = userManager; this.Localizer = localizer; _networkReachability = networkReachability; _platformException = platformException; _config = config; _offlinemode = !IsDeviceOnline(); ChangeLanguage(_config.GetDefaultLanguage.ToString()); }
private void DatasetSetupInternal() { reachability = ServiceFactory.Instance.GetService <INetworkReachability>(); reachability.NetworkReachabilityChanged += HandleNetworkChange; }
private void DatasetSetupInternal() { _netReachability = ServiceFactory.Instance.GetService <INetworkReachability>(); _netReachability.NetworkReachabilityChanged += OnNetworkReachabilityChanged; }
/** * Set the delegate implementation. * * @param _delegate The delegate implementing platform specific functions. */ public void SetDelegate(INetworkReachability _delegate) { this._delegate = _delegate; }
/** * Constructor with delegate. * * @param _delegate The delegate implementing platform specific functions. */ public NetworkReachabilityBridge(INetworkReachability _delegate) : base() { this._delegate = _delegate; }
private void DatasetSetupInternal() { reachability = ServiceFactory.Instance.GetService<INetworkReachability>(); reachability.NetworkReachabilityChanged += HandleNetworkChange; }
private void DatasetSetupInternal() { _netReachability = ServiceFactory.Instance.GetService<INetworkReachability>(); _netReachability.NetworkReachabilityChanged += OnNetworkReachabilityChanged; }
internal Dataset() { reachability = ServiceFactory.Instance.GetService<INetworkReachability>(); reachability.NetworkReachabilityChanged += HandleNetworkChange; }