Skip to content

Commit f6ae6e6

Browse files
Merge pull request #71 from rabbitmq/rabbitmq-dotnet-client-68
Rework heartbeat handling, fixes #68
2 parents 15c0831 + 52e66b0 commit f6ae6e6

File tree

8 files changed

+300
-147
lines changed

8 files changed

+300
-147
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,10 @@ Backup*/
8787
UpgradeLog*.XML
8888
UpgradeLog*.htm
8989

90+
# Unit tests
91+
9092
projects/client/Unit/TestResult.xml
93+
94+
# Development scripts
95+
96+
*.fsx

projects/client/RabbitMQ.Client/src/client/api/ConnectionFactory.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
// Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
3939
//---------------------------------------------------------------------------
4040

41+
using RabbitMQ.Client.Exceptions;
42+
using RabbitMQ.Client.Framing.Impl;
43+
using RabbitMQ.Client.Impl;
4144
using System;
4245
using System.Collections.Generic;
4346
using System.Net.Security;
4447
using System.Threading.Tasks;
45-
using RabbitMQ.Client.Exceptions;
46-
using RabbitMQ.Client.Framing.Impl;
47-
using RabbitMQ.Client.Impl;
4848

4949
namespace RabbitMQ.Client
5050
{
@@ -103,7 +103,7 @@ public class ConnectionFactory : ConnectionFactoryBase, IConnectionFactory
103103
/// <summary>
104104
/// Default value for connection attempt timeout, in milliseconds.
105105
/// </summary>
106-
public const int DefaultConnectionTimeout = 30*1000;
106+
public const int DefaultConnectionTimeout = 30 * 1000;
107107

108108
/// <summary>
109109
/// Default value for the desired maximum frame size, with zero meaning unlimited (value: 0).
@@ -138,7 +138,7 @@ public class ConnectionFactory : ConnectionFactoryBase, IConnectionFactory
138138
/// <summary>
139139
/// Default SASL auth mechanisms to use.
140140
/// </summary>
141-
public static AuthMechanismFactory[] DefaultAuthMechanisms = {new PlainMechanismFactory()};
141+
public static AuthMechanismFactory[] DefaultAuthMechanisms = { new PlainMechanismFactory() };
142142

143143
/// <summary>
144144
/// SASL auth mechanisms to use.
@@ -282,7 +282,6 @@ public Uri uri
282282
/// </summary>
283283
public AuthMechanismFactory AuthMechanismFactory(string[] mechanismNames)
284284
{
285-
286285
// Our list is in order of preference, the server one is not.
287286
foreach (AuthMechanismFactory factory in AuthMechanisms)
288287
{

0 commit comments

Comments
 (0)