Class ProtoMessage
A message observed on or sent to a broker. Adapters map their technology's message onto this shape; the test-side API and the trace never see a broker-specific type.
public sealed record ProtoMessage : IEquatable<ProtoMessage>
- Inheritance
-
ProtoMessage
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoMessage(string, string?, IReadOnlyDictionary<string, string?>?, string?)
A message observed on or sent to a broker. Adapters map their technology's message onto this shape; the test-side API and the trace never see a broker-specific type.
public ProtoMessage(string Destination, string? Payload = null, IReadOnlyDictionary<string, string?>? Headers = null, string? ContentType = null)
Parameters
Properties
ContentType
public string? ContentType { get; init; }
Property Value
Destination
public string Destination { get; init; }
Property Value
Headers
public IReadOnlyDictionary<string, string?>? Headers { get; init; }
Property Value
Payload
public string? Payload { get; init; }