EasyNetQ
EasyNetQ copied to clipboard
PublishConfiguration as struct
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.