[rabbitmq-discuss] Specifying connection timeout in dotnet client

Dave Curylo curylod at asme.org
Wed Jun 6 19:18:00 BST 2012


I would like to specify a connection timeout when using the dotnet client
as it appears that when the broker is unreachable, my calls to
CreateConnection() block indefinitely.

ConnectionFactory cf = new ConnectionFactory ();
cf.HostName = "192.168.96.129";
var conn = cf.CreateConnection ();

Is there a way to specify the timeout in the ConnectionFactory?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120606/907029d4/attachment.htm>


More information about the rabbitmq-discuss mailing list