Exemplo n.º 1
0
        public Conversation GetEntry(string key)
        {
            ConversationWrapper value = null;

            if (this.ConversationMap.TryGetValue(key, out value))
            {
                return(value.Conversation);
            }

            Conversation conversation = Conversations.Retrieve(key);

            this.ConversationMap.Add(conversation.Id, new ConversationWrapper(conversation, DateTimeOffset.UtcNow.ToUnixTimeSeconds()));

            return(conversation);
        }