public bool HandleMessage(string message) { if (_result) { MessagesHandled.Add(message); } else { MessagesNotHandled.Add(message); } return(_result); }
public bool HandleMessage(string message) { { MessagesHandled.Add(message); TimeMessagesHandled.Add(DateTime.Now.ToLocalTime()); if (_delayInSeconds > 0) { Thread.Sleep(_delayInSeconds * 1000); } } return(true); }