private void Connect()
 {
     try
     {
         //-- Arrange
         var storageCredential = new StorageCredentials(StorageName, StorageAccessKey);
         var storageAccount    = new CloudStorageAccount(storageCredential, true);
         var tableClient       = storageAccount.CreateCloudTableClient();
         //-- Act
         LogTable = tableClient.GetTableReference(TableRepositoryName);
         LogTable.CreateIfNotExists();
         IsConnected = true;
     }
     catch (Exception ex)
     {
         IsConnected = false;
         if (!IgnoreException)
         {
             throw new Exception("Failed to connect to Azure table storage.", ex);
         }
     }
 }