What is the difference between Consumes.For, Consumes.Selected, Consumes.All and Consumes.Context in MassTransit? -


i've started looking @ masstransit , writing classes handle messages. when implement interface consumes<t> 4 options: all, selected, for<t> , context. difference between 4 , when should them used?

all gives messages consume. context context<tmessage> if need it. selected allows accept or reject messages before gets consumer. for<t> sagas, don't think there's use case outside of that.

starting off, using all right answer.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -