private void LoadSettings(AzureTableSettings settings) { StorageSettings = settings; LoadSchemaMapping(StorageSettings.SchemaDefinition); try { AzureTableClient = new CloudTableClient(settings.StorageUri, new StorageCredentials(settings.SAS)); StorageTable = AzureTableClient.GetTableReference(StorageSettings.TableName); } catch (Exception e) { throw new TelemetryReportingException("Unable to connect to the Azure Storage Table (" + e.Message + "). See InnerException for additional details.", e); } }
public AzureTableStorageProvider(AzureTableSettings settings) { LoadSettings(settings); }