Skip to content

Bot notification - Custom Store IConversationReferenceStore #9327

Answered by swatDong
kos7adin asked this question in Q&A
Discussion options

You must be logged in to vote

Your CustomStorage looks good and should work to store conversation references.
BTW, I noticed that you expand all properties and sub-properties (User*, Bot*, Conversation*, ...). An alternative is to store the whole object, e.g.,

// write ...
entity.RawContent = JsonSerializer.Serialize(conversationReference);

// read ...
conversationReference = JsonSerializer.Deserialize<ConversationReference>(entity.RawContent);

Anyway, you may have your own business requirement and your solution should work.

Thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kos7adin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants