So, when I'm configuring the endpoint and I set ep.Consumer<MyConsumer>(context) - am I able to add something to the Consumer that appears in the ConsumeContext on each invocation?
For example something like this:
MyMetaData metadata = new MyMetaData() { foo: "Bar" }
ep.Consumer<MyConsumer>(context, c => c.somehowincludemetadata(metadata));
And then in the Consumer:
public Task Consume(ConsumeContext<Message> context)
{
var metadata = (MyMetaData)context.heresyourmetadata();
}
Obviously that psudeo-code - but what I'm after is essentially a means by which I can add context (like a customer name, computer name) to the context for retrieve during processing.
It's completely on the consumer side, the publisher won't have any idea of the data that needs to be included.
Many thanks.