private CloudStorageAccount CreateStorageAccountFromConnectionString(string storageConnectionString, TableStorageOptions options)
        {
            CloudStorageAccount storageAccount;

            try
            {
                storageAccount = CloudStorageAccount.Parse(storageConnectionString);
                var tableServicePoint = ServicePointManager.FindServicePoint(storageAccount.TableEndpoint);
                tableServicePoint.UseNagleAlgorithm = options.UseNagleAlgorithm;
                tableServicePoint.Expect100Continue = options.Expect100Continue;
                tableServicePoint.ConnectionLimit   = options.ConnectionLimit;
            }
            catch (FormatException)
            {
                Console.WriteLine("Invalid storage account information provided. Please confirm the AccountName and AccountKey are valid in the app.config file - then restart the application.");
                throw;
            }
            catch (ArgumentException)
            {
                Console.WriteLine("Invalid storage account information provided. Please confirm the AccountName and AccountKey are valid in the app.config file - then restart the sample.");
                Console.ReadLine();
                throw;
            }

            return(storageAccount);
        }
 public TableStorageRepository(string connectionString, TableStorageOptions options)
 {
     _account = CreateStorageAccountFromConnectionString(connectionString, options);
     _options = options;
 }