public Task <ILogHandler> GetLogRepositoryHandlerAsync(string tablePrefix)
        {
            BlockProcessingCloudTableSetup cloudTableSetup = GetCloudTableSetup(tablePrefix);
            var repo    = cloudTableSetup.CreateTransactionLogRepository();
            var handler = new TransactionLogRepositoryHandler(repo);

            return(Task.FromResult(handler as ILogHandler));
        }
 private BlockProcessingCloudTableSetup GetCloudTableSetup(string tablePrefix)
 {
     if (!_cloudTableSetups.TryGetValue(tablePrefix, out BlockProcessingCloudTableSetup setup))
     {
         setup = new BlockProcessingCloudTableSetup(AzureStorageConnectionString, tablePrefix);
         _cloudTableSetups.Add(tablePrefix, setup);
     }
     return(setup);
 }