azure-table-storage

SQLDependency solution for Azure table?

可紊 提交于 2019-12-11 09:20:14
问题 I want to use Azure table to store data which is posted by users. And whenever a user post something to some other user it should give out a notification to this user. I have looked into Comet solution with PokeIn to see if there are a way for it. As I'm new to this technique I would like to know the approach before writing the code. My though to tackle this problem so far is that you can make reverse ajax call to the server. And then at the server it will continuously check the database,

Azure storage table REST Api call - Invalid Header

拥有回忆 提交于 2019-12-11 08:54:58
问题 I am trying to invoke the REST API to view the content of Azure Storage table. Hope I have properly formed Authorization header value and I am getting below error. Please correct me where I am missing in below request (From REST Client app). { "method": "GET", "transformRequest": [ null ], "transformResponse": [ null ], "url": "https://#####.table.core.windows.net/testDB", "headers": { "x-ms-date": "Thu, 28 Jun 2018 08:39:05 GMT", "x-ms-version": "2018-06-28", "Accept": "application/json

How do I extract ETAG from a WCF Dataservices response?

◇◆丶佛笑我妖孽 提交于 2019-12-11 07:58:16
问题 I've been trying to get an answer to this question for quite some time. Since the WCF Dataservice isn't thread safe, and often it needs to be recreated, once I query my datastore for a record, how do I extract the ETAG from that response so I can use it when I reconstruct my datacontext? 回答1: That depends on which language/library you're using on the client and which format you're using on the wire (ATOM vs JSON). The ETag is stored in the payload and in case of a single entity payload also

Error in WCF Data Service when using string.Contains within LINQ statement from Silverlight

…衆ロ難τιáo~ 提交于 2019-12-11 07:21:49
问题 This is the code within Silverligh. I'm trying to get data from a wcf data service: public DataServiceQuery<Group> GetGroupsByDisplayName(string groupPartitionKey, string displayName) { DataServiceQuery<Group> query = (DataServiceQuery<Group>)(from g in this.Groups where g.PartitionKey == groupPartitionKey & g.DisplayName.Contains(displayName) == true select g); return query; } This is the result of that query: http://127.0.0.1:8080/DataService/WcfDataService.svc/Groups()?$filter=PartitionKey

input-binding to table storage with an http-triggered function

你。 提交于 2019-12-11 06:34:52
问题 Is it possible to (input) bind to table storage within an http-triggered function? I'm attempting to add an input-binding to table-storage inside of a regular http-triggered function with the following attribute: [Table("MyTable", "MyPartition", "{httpTrigger}")] MyPoco poco However it's returning the following error when I execute it: [6/5/2019 5:36:38 PM] An unhandled host error has occurred. [6/5/2019 5:36:38 PM] Microsoft.Azure.WebJobs.Host: 'tableStorageInputBindingHttpTriggered' can't

Can't delete Azure Storage Table using Azure REST API

梦想与她 提交于 2019-12-11 06:25:46
问题 I am getting an error " Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. " I followed the authorization tutorial provided by Microsoft, Delete Table, Authentication for the Azure Storage Services. Am I missing anything? 回答1: It seems that you’d like to delete table via rest api. DELETE https://myaccount.table.core.windows.net/Tables('mytable') the following sample works fine on my side, please refer to the code

Can Azure Table be accessed from Web Site

半城伤御伤魂 提交于 2019-12-11 06:23:54
问题 I am experiencing error 500 from the web-api MVC website deployed to Azure. WebApi controllers access Azure Table Storage and it works locally (local website works with my Azure Table). Troubleshooting the problem I used "Linked Resources" page to link the website to the Storage but noticed the following: "The Customer Preview Release of the Windows Azure Management Portal does not support linking a storage account to a web site or a cloud service" Despite this message it shows status as

Azure Storage Table - Insert batch of row and check if they exists

六眼飞鱼酱① 提交于 2019-12-11 06:11:19
问题 I sending query for some service and get back result. I want to know if I already get the same "answer" in the past. So, I planing to use Azure Table as a cache mechanism. I making this small POC: TableBatchOperation batchOperation = new TableBatchOperation(); CachedUrl customer1 = new CachedUrl(Guid.Empty, "test1"); CachedUrl customer2 = new CachedUrl(Guid.Empty, "test2"); batchOperation.Insert(customer1); batchOperation.Insert(customer2); table.ExecuteBatch(batchOperation); When I run this

ExecuteQuerySegmentedAsync is not working when the Azure table has more records

亡梦爱人 提交于 2019-12-11 05:20:38
问题 I'm trying to read the records from Azure table storage. I have a simple query while pulling the records var isPagination = true; var combinedFilter = "groupCode eq '9THS'"; var query = new TableQuery<AzStorageEntityAdapter<T>>().Where(combinedFilter); TableRequestOptions tableRequestOptions = new TableRequestOptions() { ServerTimeout = TimeSpan.FromSeconds(90) }; do { var segments = await table.ExecuteQuerySegmentedAsync(query, continuationToken, tableRequestOptions, null); currentPageResult

Getting an error message “Error occurred while decoding OAEP padding” while trying to retrieve the entities from Azure Table Storage

送分小仙女□ 提交于 2019-12-11 01:47:30
问题 I am encrypting the table in the following way. public TableRequestOptions EncryptTableStorage() { // Create the IKey used for encryption. var key = new RsaKey("mykey"); var policy = new TableEncryptionPolicy(key, null); TableRequestOptions options = new TableRequestOptions() { EncryptionPolicy = policy }; return options; } My Encrypted entity [EncryptProperty] public string ConsumerId { get; set; } While retrieving, I am using the following code var query = new TableQuery<CloudModelDetail>()