Class CollectionRequestMessage<T>
- Namespace
- CommunityToolkit.Mvvm.Messaging.Messages
- Assembly
- CommunityToolkit.Mvvm.dll
A class for request messages that can receive multiple replies, which can either be used directly or through derived classes.
public class CollectionRequestMessage<T> : IEnumerable<T>, IEnumerable
Type Parameters
T
The type of request to make.
- Inheritance
-
CollectionRequestMessage<T>
- Implements
-
IEnumerable<T>
- Inherited Members
Constructors
CollectionRequestMessage()
public CollectionRequestMessage()
Properties
Responses
Gets the message responses.
public IReadOnlyCollection<T> Responses { get; }
Property Value
Methods
Reply(T)
Replies to the current request message.
public void Reply(T response)
Parameters
response
TThe response to use to reply to the request message.