On Fri, May 25, 2012 at 12:58 PM, Dru Sellers <d
...@drusellers.com> wrote:
> I like it when its easy. :)
> On Fri, May 25, 2012 at 12:31 PM, Clay Anderson <supersonicc...@gmail.com>wrote:
>> We were able to accomplish what we were after by purging the queue on
>> startup.
>> Bus.Initialize(serviceBusConfig =>
>> {
>> serviceBusConfig.UseLog4Net();
>> serviceBusConfig.UseRabbitMqRouting();
>> serviceBusConfig.SetPurgeOnStartup(true);
>> serviceBusConfig.ReceiveFrom("...");
>> }
>> We just wanted to avoid the client getting a timeout error but the server
>> still processing the request when it started back up.
>> Thanks.
>> On Wednesday, May 9, 2012 1:25:05 PM UTC-6, Clay Anderson wrote:
>>> We'd like to be able to set an expiration date / time to live on
>>> requests.
>>> I see the Publish method takes Action<PublishContext<T>> so we can set
>>> the expiration time.
>>> Bus.Instance.Publish(request, x =>
>>> {
>>> x.SetExpirationTime(**DateTime.Now.AddSeconds(5));
>>> });
>>> However, it doesn't appear we can set expiration when using
>>> PublishRequest. Using SetTimeout only applies to the response, the request
>>> is still processed. Is there a way to set expiration on requests? Something
>>> like:
>>> Bus.Instance.PublishRequest(**request, x =>
>>> {
>>> x.Handle<MyResponse>((message) => { });
>>> x.SetTimeout(TimeSpan.**FromSeconds(10));
>>> x.SetExpirationTime(DateTime.**Now.AddSeconds(10));
>>> });
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "masstransit-discuss" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/masstransit-discuss/-/msXmxSLpl4sJ.
>> To post to this group, send email to masstransit-discuss@googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> masstransit-discuss+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/masstransit-discuss?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "masstransit-discuss" group.
> To post to this group, send email to masstransit-discuss@googlegroups.com.
> To unsubscribe from this group, send email to
> masstransit-discuss+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/masstransit-discuss?hl=en.