Delegate MessageReader<T>
Represents asynchronous message reader.
Namespace: DotNext.Net.Cluster.Messaging
Assembly: DotNext.Net.Cluster.dll
Syntax
public delegate ValueTask<T> MessageReader<T>(IMessage message, CancellationToken token)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | The message to be deserialized. |
CancellationToken | token | The token that can be used to cancel asynchronous operation. |
Returns
Type | Description |
---|---|
ValueTask<T> | The object representing deserialized message content. |
Type Parameters
Name | Description |
---|---|
T | The type representing deserialized message content. |