Skip to content

Commit e04909a

Browse files
Make this readonly to keep SQL CLR happy, references #57
1 parent 4503b96 commit e04909a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
using System.Threading.Tasks;
4747

4848
#if !NETFX_CORE
49+
4950
using System.Net.Security;
51+
5052
#endif
5153

5254
namespace RabbitMQ.Client
@@ -141,7 +143,7 @@ public class ConnectionFactory : ConnectionFactoryBase, IConnectionFactory
141143
/// <summary>
142144
/// Default SASL auth mechanisms to use.
143145
/// </summary>
144-
public static AuthMechanismFactory[] DefaultAuthMechanisms = { new PlainMechanismFactory() };
146+
public static readonly AuthMechanismFactory[] DefaultAuthMechanisms = { new PlainMechanismFactory() };
145147

146148
/// <summary>
147149
/// SASL auth mechanisms to use.
@@ -400,4 +402,4 @@ private string UriDecode(string uri)
400402
return System.Uri.UnescapeDataString(uri.Replace("+", "%2B"));
401403
}
402404
}
403-
}
405+
}

0 commit comments

Comments
 (0)