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
Post a Comment