Exemplo n.º 1
0
        public void Setup()
        {
            // Have to use environment variables since we don't have Secrets Manager
            // without Core.  The reason we don't have Core is because AutoIt doesn't
            // seem to want to play nicely with it.
            // J.Dallas 05-06-2020
            string       testUrl      = Environment.GetEnvironmentVariable("QSTHUMBTESTURL");
            string       testDomain   = Environment.GetEnvironmentVariable("QSTHUMBTESTDOMAIN");
            string       testUsername = Environment.GetEnvironmentVariable("QSTHUMBTESTUSERNAME");
            string       testPassword = Environment.GetEnvironmentVariable("QSTHUMBTESTPASSWORD");
            SecureString secureString = new SecureString();

            testPassword.ToList().ForEach(s =>
            {
                secureString.AppendChar(s);
            });
            _qlikThumbAuthModel = new QlikAuthModel
            {
                QlikServerUrl  = testUrl,
                QlikAdDomain   = testDomain,
                QlikAdUsername = testUsername,
                QlikAdPassword = secureString
            };

            _qlikEngineService = new QlikEngineService(_qlikThumbAuthModel);
        }
Exemplo n.º 2
0
        public QlikThumbProcessor(IEventAggregator eventAggregator,
                                  QlikAuthModel qlikAuthModel,
                                  QlikThumbModel qlikThumbModel,
                                  QlikEngineService qlikEngineService)
        {
            _eventAggregator   = eventAggregator;
            _qlikAuthModel     = qlikAuthModel;
            _qlikThumbModel    = qlikThumbModel;
            _qlikEngineService = qlikEngineService;
            _counterHashSet    = new HashSet <string>();

            _eventAggregator.GetEvent <StartProcessingEvent>().Subscribe(StartProcessing);

            _log.Information("QlikThumbProcessor created");
        }
Exemplo n.º 3
0
 public LoginViewModel(IEventAggregator eventAggregator, QlikAuthModel qlikThumbAuthModel, QlikEngineService qlikEngineService)
 {
     _eventAggregator    = eventAggregator;
     _qlikThumbAuthModel = qlikThumbAuthModel;
     _qlikEngineService  = qlikEngineService;
 }
Exemplo n.º 4
0
 public QlikEngineService(QlikAuthModel qlikThumbAuthModel)
 {
     _qlikThumbAuthModel = qlikThumbAuthModel;
     _log.Information("QlikEngineService created");
 }