Пример #1
0
        public ShellViewModel()
        {
            _name = string.Format("WPF Client {0}", DateTime.Now.Ticks);
            _chatMessageManager = new ChatMessageManager();
            MessageCollection   = new BindableCollection <ChatMessage>();

            Task.Run(async() => await _chatMessageManager.ConnectAsync());

            _chatMessageManager.MessageReceived += ChatMessageManagerOnMessageReceived;
        }