azure-table-storage

how to get chat history from azure table storage

允我心安 提交于 2019-12-05 19:55:16
问题 Since we are forced to drop the stateclient and move to a custom storage, in my case an azure table storage. Using my storageexplorer I can see that it already saved conversation data on my azure. How can I update my ff code to get past chat history? Before I'm using a IActivityLogger class to log a conversation, but now I'm confused on how to update it. Global Asax Before: protected void Application_Start() { var builder = new ContainerBuilder(); builder.RegisterType<Logger>()

Azure CloubdBlob's Properties.Length returns 0

China☆狼群 提交于 2019-12-05 17:30:10
The following code returns blob file size of 0: public long GetFileSize(string fileUrl) { var blob = GetBlobContainer().GetBlobReference(fileUrl); return blob == null ? 0 : blob.Properties.Length; } , its almost as it does not find the blob. But of I delete the blob I see that it gets deleted. This works when deleting: void DeleteFileFromBlob(string fileUrl, bool deleteSnapshots) { var blob = GetBlobContainer().GetBlobReference(fileUrl); if (deleteSnapshots) { var options = new BlobRequestOptions { DeleteSnapshotsOption = DeleteSnapshotsOption.IncludeSnapshots }; blob.DeleteIfExists(options);

Automating Deployment in Bot Framework (Bot + LUIS+ QnA + Table Storage)

白昼怎懂夜的黑 提交于 2019-12-05 15:26:44
We have a bot deployed on Azure but we want to give it to a client so he can deploy it run it using his own resources. We need to give them a Powershell script that magically create and deploy all the resources needed for the bot to work. My bot architecture consists on the following parts: Bot's Logic (ASP.NET Web API Project deployed over an Azure App Service ) LUIS Model (published over a Cognitive Services Account ) QnA Service Knowledge Base done with QnA Maker ( published directly from the QnaMaker Portal (have no idea where it's deployed ) Azure Table Storage My Questions are: 1) How to

Azure Table Storage, WCF Service and Enum

空扰寡人 提交于 2019-12-05 14:39:37
问题 Here's my problem. A class which defines an order has a property called PaymentStatus , which is an enum defined like so: public enum PaymentStatuses : int { OnDelivery = 1, Paid = 2, Processed = 3, Cleared = 4 } And later on, in the class itself, the property definition is very simple: public PaymentStatuses? PaymentStatus { get; set; } However, if I try to save an order to the Azure Table Storage, I get the following exception: System.InvalidOperationException: The type Order

The correct way to delete and recreate a Windows Azure Storage Table = Error 409 Conflict - Code : TableBeingDeleted

谁说胖子不能爱 提交于 2019-12-05 13:28:51
问题 Im really new to Windows Azure development and have a requirement to store some data in a windows azure storage table. This table will really only exist to provide a quick lookup mechanism to some files which are located on azure storage drive. Therefore I was planning on populating this table at application start up (ie in web application global application start up) Rather than trying to maintain this table for changes the changes that could occur to the drive while the application is not

Azure Mobile Service TableController not returning inner objects

ε祈祈猫儿з 提交于 2019-12-05 12:59:29
I am creating a basic (my first) Azure Mobile Service with Table Storage to control a simple Events app. My DataObjects consists of 2 object types: Coordinator and Event , I want Coordinators to be a separate table to store specific info that I don't want it denormalized inside the Events, but Events also has a inner object Location to store details for the event's location, but that I want to store denormalized as I don't want to maintain this details separately from the Event. Here the objects I have so far: DataObjests: public class Coordinator : EntityData { public string Name { get; set;

Create Directory Hierarchy Structure in Azure Tables Storage

佐手、 提交于 2019-12-05 12:36:30
Is it possible to create a directory like structure in Azure Tables? I need to store some metadata in a tree like structure. For example if I have 10 items and each item contains some metadata columns (there are some common columns for all of them [id, name, date created, author ... ], but might be also some columns that one item might have but another one no) Can these items be stored in a structural way? Item1 |_____ Item2 |_____ Item3 |_____ ItemX You can't nest the way you describe, but using Azure Tables, you don't necessarily need to. In the example above, I would set Item1 = Partition

MongoLab vs Azure Table Storage

你离开我真会死。 提交于 2019-12-05 10:43:42
Take a 100gb database for this example: Azure Storage cost: £6.05/m MongoLab on AWS with 1 node cost: £153.18 /m Am I missing something? Calculated something incorrectly? Can someone clear things up for me here? I would much rather use MongoLab as I really like node/mongoDB. But it seems a much more cost effective solution to go with the Table Storage. I know the differences between Key/Value and Document store and I do prefer the latter. You need to consider that Azure Table Storage (ATS) is storage-as-a-service. You don't need to set up any servers to manage the storage and related CRUD

Azure table storage - where clause on column that may not exist

陌路散爱 提交于 2019-12-05 10:36:09
I am adding a new column to my azure table. For ex., the table is called 'User' and the new column is called 'ComputationDate'. The 'User' table already exists with rows that do not have this new column 'ComputationDate'. I have a query over it as follows, var usersDue = from user in Table.Query where user.ComputationDate != <somedate> select user; I want this query to return all user rows that do not have ComputationDate set to 'somedate' and also user rows that do not have this new 'ComputationDate' column defined. But the query doesn't return the latter set of users. It only returns rows

How can I store arbitrary key value pairs in Azure table storage?

大城市里の小女人 提交于 2019-12-05 08:07:09
Background I am receiving CSV data files from clients that contain a large amount of data that I don't need and a small amount of data that I do. In the future I may need to access that data and although I'm archiving the original data files I was hoping for something a bit easier to query. I was hoping for a solution that didn't mean the data files stayed in the same format - i.e. the client may add/remove columns and I don't want my implementation to bail on missing data or fail to archive additional data. As I'm building the application in Azure, Azure table storage looked correct to me - I