문제

I have an application in which I have subscribed for ConversationAdded and ConversationRemoved.

I want to maintain a list of dictionary of conversation which i received from ConversationAdded event and remove it from the list of once i get the ConversationRemoved Event.

So my question-> Is there some way we can find some uniqueness or some key of Conversation which i can get and add it in the list. And when i get the conversation removed event i can use that key from the conversation object received and remove the conversation object from the list.

Please let me know your comments.

도움이 되었습니까?

다른 팁

Yep, there's a ConversationID you can get. From the ConversationAdded event, you can get it with this:

string ConversationID = e.Conversation.Properties[ConversationProperty.Id].ToString();

More info and a proper walk-through on my blog here.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top