|
38 | 38 | // Copyright (c) 2007-2014 GoPivotal, Inc. All rights reserved.
|
39 | 39 | //---------------------------------------------------------------------------
|
40 | 40 |
|
| 41 | +using RabbitMQ.Client.Exceptions; |
| 42 | +using RabbitMQ.Client.Framing.Impl; |
| 43 | +using RabbitMQ.Client.Impl; |
41 | 44 | using System;
|
42 | 45 | using System.Collections.Generic;
|
43 | 46 | using System.Net.Security;
|
44 | 47 | using System.Threading.Tasks;
|
45 |
| -using RabbitMQ.Client.Exceptions; |
46 |
| -using RabbitMQ.Client.Framing.Impl; |
47 |
| -using RabbitMQ.Client.Impl; |
48 | 48 |
|
49 | 49 | namespace RabbitMQ.Client
|
50 | 50 | {
|
@@ -103,7 +103,7 @@ public class ConnectionFactory : ConnectionFactoryBase, IConnectionFactory
|
103 | 103 | /// <summary>
|
104 | 104 | /// Default value for connection attempt timeout, in milliseconds.
|
105 | 105 | /// </summary>
|
106 |
| - public const int DefaultConnectionTimeout = 30*1000; |
| 106 | + public const int DefaultConnectionTimeout = 30 * 1000; |
107 | 107 |
|
108 | 108 | /// <summary>
|
109 | 109 | /// Default value for the desired maximum frame size, with zero meaning unlimited (value: 0).
|
@@ -138,7 +138,7 @@ public class ConnectionFactory : ConnectionFactoryBase, IConnectionFactory
|
138 | 138 | /// <summary>
|
139 | 139 | /// Default SASL auth mechanisms to use.
|
140 | 140 | /// </summary>
|
141 |
| - public static AuthMechanismFactory[] DefaultAuthMechanisms = {new PlainMechanismFactory()}; |
| 141 | + public static AuthMechanismFactory[] DefaultAuthMechanisms = { new PlainMechanismFactory() }; |
142 | 142 |
|
143 | 143 | /// <summary>
|
144 | 144 | /// SASL auth mechanisms to use.
|
@@ -282,7 +282,6 @@ public Uri uri
|
282 | 282 | /// </summary>
|
283 | 283 | public AuthMechanismFactory AuthMechanismFactory(string[] mechanismNames)
|
284 | 284 | {
|
285 |
| - |
286 | 285 | // Our list is in order of preference, the server one is not.
|
287 | 286 | foreach (AuthMechanismFactory factory in AuthMechanisms)
|
288 | 287 | {
|
|
0 commit comments