Method Enrich
Enrich<TMessage>(MessageProperties?)
Enriches the properties for a message of type TMessage. If properties is null, creates a new instance. Only populates missing values, never overwrites existing ones.
public MessageProperties Enrich<TMessage>(MessageProperties? properties) where TMessage : notnull
Parameters
propertiesMessageProperties
Returns
Type Parameters
TMessage
Enrich(Type, MessageProperties?)
Enriches the properties for a message of the given type. If properties is null, creates a new instance. Only populates missing values, never overwrites existing ones.
public MessageProperties Enrich(Type messageType, MessageProperties? properties)
Parameters
messageTypeTypepropertiesMessageProperties