示例#1
0
        public void StarProduction()
        {
            Console.Clear();
            Action <string> messageRcieved = line =>
            {
                var message = new Message
                {
                    Channel = Channel,
                    Type    = "TestMessage",
                    RoomId  = "ConsoleRoom",
                    UserId  = "ConsoleUser",
                    Content = line
                };

                FireMessageProduced(message);
            };

            _listner = new ConsoleListner(messageRcieved);

            _listner.StartListening();
        }
示例#2
0
        public void StarProduction()
        {
            Console.Clear();
            Action<string> messageRcieved = line =>
            {
                var message = new Message
                {
                    Channel = Channel,
                    Type = "TestMessage",
                    RoomId = "ConsoleRoom",
                    UserId = "ConsoleUser",
                    Content = line
                };

                FireMessageProduced(message);
            };

            _listner = new ConsoleListner(messageRcieved);

            _listner.StartListening();
        }