コード例 #1
0
        public SessionService()
        {
            this.CurrentSessionMessagesHistory = new List <HistoryMessage>();

            database = MongoConfigurator.Connect();
            try
            {
                basedMessagesHistory = messagesCollection.FindSync(_ => true).ToList();
            }
            catch (Exception e)
            {
                basedMessagesHistory = new List <HistoryMessage>();
            }
        }