private async Task <AddressSummaryAdapter> GetAddressSummaryAsync(string address) { var defaultResult = new AddressSummaryAdapter(new AddressSummaryModel { Address = address }); var operation = TableOperation.Retrieve <AddressSummaryAdapter>(defaultResult.PartitionKey, defaultResult.RowKey); var response = await StorageClient.GetAddressTable().ExecuteAsync(operation).ConfigureAwait(false); return(response.Result as AddressSummaryAdapter ?? defaultResult); }
protected override CloudTable GetCloudTable() { return(StorageClient.GetAddressTable()); }