public LogToStatisticsUploader(BasicFileLogger logger) { CloudStorageAccount storageAccount = CloudStorageAccount.Parse("connection string"); tableClient = storageAccount.CreateCloudTableClient(); this.logger = logger; failedRecords = 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(); }
public AzureBlobDAO(CloudStorageAccount cloudStorageAccount, BasicFileLogger logger) { cloudBlobClient = cloudStorageAccount.CreateCloudBlobClient(); this.logger = logger; }
public LoadTestFolderLocator(BasicFileLogger logger) { this.logger = logger; }