AzureServiceBus OperationTimeout

151 views
Skip to first unread message

Jakob Nordlander

unread,
Dec 12, 2016, 7:21:44 AM12/12/16
to masstransit-discuss
Hey guys,

Got a question related to the operation timeout when using Masstransit with AzureServiceBus. 

If I configure my bus with an operation timeout, does that apply to all operations I perform against that bus? In my testing that appears to be the case. I've configured the bus like below. Is there any way to get different timeouts for different operations? Mainly to have one timeout for starting the bus and another for publishing messages?

 var bus = Bus.Factory.CreateUsingAzureServiceBus(cfg =>
           
{
                cfg
.Host(busConnectionString, h =>
               
{
                    h
.OperationTimeout = TimeSpan.FromSeconds(5);
                    h
.TransportType = TransportType.NetMessaging;
               
});
           
});


Thanks,
Jakob

Dru Sellers

unread,
Dec 12, 2016, 9:22:04 AM12/12/16
to masstrans...@googlegroups.com
It looks like that "OperationTimeout" setting is used when setting the OperationTimeout on the "NamespaceManagerSettings" and the "MessagingFactorySettings". Since I'm not familiar with ASB, I'm not sure which of those is really your "bus" start. 

--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
To post to this group, send email to masstransit-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/35272b0c-e672-438f-b807-1734897a6548%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages