Example #1
0
        public async void Load()
        {
            try
            {
                ImmutableList <Message> boardMessages = await _messageStore.LoadAsync(_board.GetObjectId());

                _board.HandleAllMessages(boardMessages);
                foreach (var card in _board.Cards)
                {
                    ImmutableList <Message> cardMessages = await _messageStore.LoadAsync(card.GetObjectId());

                    card.HandleAllMessages(cardMessages);
                }

                ImmutableList <Message> queueMessages = await _messageQueue.LoadAsync();

                _messagePump.SendAllMessages(queueMessages);
            }
            catch (Exception ex)
            {
                _exception.Value = ex;
            }
        }