Class Message
The messaging data structure for request and response exchange with the RPC endpoint
public record Message : IEquatable<Message>
- Inheritance
-
Message
- Implements
- Inherited Members
- Extension Methods
Properties
Ack
Indication whether message is an acknowledgement (i.e response)
public bool Ack { get; init; }
Property Value
- bool
- The messaging data structure for request and response exchange with the RPC endpoint
Command
The command to be processed by the endpoint service
public string Command { get; init; }
Property Value
- string
- The messaging data structure for request and response exchange with the RPC endpoint
Data
Data to go along with the command
public dynamic? Data { get; init; }
Property Value
- dynamic
- The messaging data structure for request and response exchange with the RPC endpoint
Destination
The name of the destination service
public string Destination { get; init; }
Property Value
- string
- The messaging data structure for request and response exchange with the RPC endpoint
IsSuccessfulResponse
Indicates whether this is a response (Ack is true) and the success flag is also true
[JsonIgnore]
public bool IsSuccessfulResponse { get; }
Property Value
- bool
- The messaging data structure for request and response exchange with the RPC endpoint
Origin
The name of the origin service
public string Origin { get; init; }
Property Value
- string
- The messaging data structure for request and response exchange with the RPC endpoint
RequestId
Unique correlation id of the message. This will round trip to the RPC server and back in its response
public string RequestId { get; init; }
Property Value
- string
- The messaging data structure for request and response exchange with the RPC endpoint
Methods
Create(string, object?, string, string)
Construct a new instance of a Message
public static Message Create(string command, object? data, string destination, string origin)