Пример #1
0
 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;
 }
Пример #2
0
 public CaptivePortalHelper()
 {
     try
     {
         m_wifiManager = PlatformTypes.New <IWifiManager>();
     }
     catch (Exception ex)
     {
         LoggerUtil.GetAppWideLogger().Error(ex, "Failed to initialize WIFI Manager.");
     }
 }