public LogToStatisticsUploader(BasicFileLogger logger)
        {
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse("connection string");

            tableClient   = storageAccount.CreateCloudTableClient();
            this.logger   = logger;
            failedRecords = 0;
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            var                     now     = System.DateTime.UtcNow;
            BasicFileLogger         logger  = new BasicFileLogger("LogFile-" + now.Year + '-' + now.Month + '-' + now.Day + '-' + now.Hour + '-' + now.Minute + ".log");
            LoadTestFolderLocator   locator = new LoadTestFolderLocator(logger);
            var                     testResultFolderList = locator.GetLoadTestResultFolderListFromEmailText(args[0]);
            LogToStatisticsUploader statisticUploader    = new LogToStatisticsUploader(logger);

            foreach (string testResultFolder in testResultFolderList)
            {
                statisticUploader.UploadStatisticsToAzureTable(testResultFolder, args[1]);
            }

            logger.Shutdown();
        }
Exemplo n.º 3
0
 public AzureBlobDAO(CloudStorageAccount cloudStorageAccount, BasicFileLogger logger)
 {
     cloudBlobClient = cloudStorageAccount.CreateCloudBlobClient();
     this.logger     = logger;
 }
Exemplo n.º 4
0
 public LoadTestFolderLocator(BasicFileLogger logger)
 {
     this.logger = logger;
 }