public static Dictionary <string, AttributeValue> ToAttributes(ChatSession chatSession)
        {
            var attributes = ToKey(chatSession);

            attributes.Add(ConnectionAttribute, new AttributeValue(chatSession.ConnectionId.ToString()));
            attributes.Add(SessionAttribute, new AttributeValue(chatSession.SessionId.ToString()));
            attributes.Add(ExpiryAttribute, new AttributeValue {
                N = chatSession.Expiry.ToUnixTimeSeconds().ToString()
            });
            return(attributes);
        }
 public static Dictionary <string, AttributeValue> ToKey(ChatSession session) => ToKey(session.RoomId, session.ClientId);