Is it possible to set TimeToBeReceived?

18 views
Skip to first unread message

Mike Hadlow

unread,
Oct 30, 2009, 11:23:25 AM10/30/09
to masstransit-discuss
Is there a way to set TimeToBeReceived by message type? I see that
there's a MassTransit.TimeoutAttribute, but it doesn't seem to being
used anywhere (at least according to R#).

I think it would be really nice if things like heartbeat messages have
TimeToBeReceived set so that there's no chance for MSMQ to fail from
being flooded (as has just happened to me :p)

Dru Sellers

unread,
Oct 30, 2009, 1:56:22 PM10/30/09
to masstrans...@googlegroups.com
Yeah, we need to look at either clearing that guy out, or getting it to work. I will see if I can't take a peek this weekend.
-d

Chris Patterson

unread,
Oct 30, 2009, 10:07:54 PM10/30/09
to masstrans...@googlegroups.com
You can apply the header attribute to the message using:

_bus.Publish(message, x => x.ExpiresAt(5.Minutes().FromNow()));

I'll look and see how the publish code could make this apply at the interface and/or message level.


Chris Patterson



Reply all
Reply to author
Forward
0 new messages