zarusz / SlimMessageBus

Lightweight message bus interface for .NET (pub/sub and request-response) with transport plugins for popular message brokers.
Apache License 2.0
467 stars 78 forks source link

[Host.Memory] Ability to use headers in Memory provider without enabling message serialization #295

Closed zarusz closed 4 weeks ago

zarusz commented 4 weeks ago

In the 2.5.0 version of Memory Provider, to pass headers to the memory bus during .Publish one has to enable message serialization (disabled by default). We should have a way to allow header passing to consumers regardless if the serialization is enabled or disabled.

See here:

https://github.com/zarusz/SlimMessageBus/blob/8f8b340e37600f57c65556b93a53a40bdbebd566/src/SlimMessageBus.Host.Memory/MemoryMessageBus.cs#L58