public JobTable(IStorageAccountSettings storageAccountSettings)
        {
            CloudStorageAccount storageAccount = CloudStorageAccount.Parse(storageAccountSettings.StorageAccountConnectionString);

            // Create the table client.
            _tableClient = storageAccount.CreateCloudTableClient();

            // Create the CloudTable object that represents the "jobentity" table.
            _table = _tableClient.GetTableReference(ConfigSettings.JOBS_TABLENAME);

            _table.CreateIfNotExistsAsync().ConfigureAwait(false).GetAwaiter().GetResult();

            _partitionKey = "imageconversions";
        }
 public StorageRepository(IStorageAccountSettings storageAccountSettings)
 {
     _storageAccountSettings = storageAccountSettings;
 }
 public ImageProducerController(IStorageRepository storageRepository, IStorageAccountSettings storageAccountSettings)
 {
     _storageRepository      = storageRepository;
     _storageAccountSettings = storageAccountSettings;
     _jobTable = new JobTable(storageAccountSettings);
 }