Class ProtoMessage

Namespace
ProtoTest.Messaging
Assembly
ProtoTest.Messaging.dll

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

Destination string
Payload string
Headers IReadOnlyDictionary<string, string>
ContentType string

Properties

ContentType

public string? ContentType { get; init; }

Property Value

string

Destination

public string Destination { get; init; }

Property Value

string

Headers

public IReadOnlyDictionary<string, string?>? Headers { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Payload

public string? Payload { get; init; }

Property Value

string