public Worker(IConfiguration config, IWifiManager wifiManager, ISeleniumManipulator seleniumManipulator, IErrorHandler errorHandler) { _maxWifiConnectTimes = int.Parse(config[Define.MaxWifiConnectTimes]); _isAutoConnectWifi = bool.Parse(config[Define.IsAutoConnectWifi]); _wifiManager = wifiManager; _seleniumManipulator = seleniumManipulator; _errorHandler = errorHandler; }
public CaptivePortalHelper() { try { m_wifiManager = PlatformTypes.New <IWifiManager>(); } catch (Exception ex) { LoggerUtil.GetAppWideLogger().Error(ex, "Failed to initialize WIFI Manager."); } }