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(); }
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(); }