public async void TestGetTickerFromEmail()
        {
            string    tempTickerFolder = "/tmp/screen3_temp_files/localticker/";
            TickerBLL bll = new TickerBLL(this.s3_bucket_name, tempTickerFolder);

            string emailAccount = Environment.GetEnvironmentVariable("SCREEN3_TICKER_EMAIL_ACCOUNT");
            string emailPwd     = Environment.GetEnvironmentVariable("SCREEN3_TICKER_EMAIL_PWD");
            string bucketName   = Environment.GetEnvironmentVariable("SCREEN3_S3_BUCKET");


            await bll.GetTickerFromEmail(emailAccount, emailPwd, bucketName);
        }
Exemple #2
0
        public async Task StartProcessAsync()
        {
            // load ticker from email
            TickerBLL bll = new TickerBLL(this.S3_Bucket_Name, this.Temp_Folder);
            await bll.GetTickerFromEmail(this.Ticker_Email_Account, this.Ticker_Email_Pwd, this.S3_Bucket_Name);

            this.stockList = await this.dal.GetAll();

            List <S3Object> fileList = await this.GetSourceFileListAsync(this.S3_Bucket_Name, "source");

            LambdaLogger.Log($"found files in the source folder, {fileList.Count}\n");

            foreach (var fileInfo in fileList)
            {
                if (fileInfo.Size > 0)
                {
                    await this.ProcessSourceFile(fileInfo);
                }
            }
        }