示例#1
0
 /// <summary>
 /// Returns all received messages of specified type, in order from latest to oldest.
 /// </summary>
 /// <typeparam name="TMessage">Message type.</typeparam>
 /// <returns>Collection of received messages.</returns>
 public IEnumerable <TMessage> GetMessages <TMessage>() => _messages.OfType <TMessage>();