EasyNetQ icon indicating copy to clipboard operation
EasyNetQ copied to clipboard

PublishConfiguration as struct

Open sungam3r opened this issue 1 year ago • 2 comments

No more heap allocations for PublishConfiguration.

c => c.WithTopic("A") -> c => c with { Topic = "A" } . C# language native feature instead of writing instance/extension methods for chaining calls.

Of course the same changes may be done for other XXXConfiguration classes.

sungam3r avatar Jan 15 '23 21:01 sungam3r