File tree Expand file tree Collapse file tree 2 files changed +4
-19
lines changed
projects/client/RabbitMQ.Client/src/client Expand file tree Collapse file tree 2 files changed +4
-19
lines changed Original file line number Diff line number Diff line change @@ -144,9 +144,9 @@ public class ConnectionFactory
144
144
/// <summary>Heartbeat setting to request (in seconds)</summary>
145
145
public ushort RequestedHeartbeat = DefaultHeartbeat ;
146
146
147
- /// <summary>Dictionary of extra client properties to be sent to the
147
+ /// <summary>Dictionary of client properties to be sent to the
148
148
/// server</summary>
149
- public IDictionary ClientProperties = DefaultClientProperties ;
149
+ public IDictionary ClientProperties = ConnectionBase . DefaultClientProperties ( ) ;
150
150
151
151
///<summary>Ssl options setting</summary>
152
152
public SslOption Ssl = new SslOption ( ) ;
@@ -161,16 +161,6 @@ public class ConnectionFactory
161
161
///<summary>The AMQP protocol to be used</summary>
162
162
public IProtocol Protocol = Protocols . FromEnvironment ( ) ;
163
163
164
- /// <summary>Default value for extra client properties to be sent to
165
- /// the server (value: empty Hashtable)</summary>
166
- public static IDictionary DefaultClientProperties
167
- {
168
- get
169
- {
170
- return new Hashtable ( ) ; // PLEASE KEEP THIS MATCHING THE DOC ABOVE
171
- }
172
- }
173
-
174
164
public AmqpTcpEndpoint Endpoint
175
165
{
176
166
get
Original file line number Diff line number Diff line change @@ -922,8 +922,7 @@ public void OnCallbackException(CallbackExceptionEventArgs args)
922
922
}
923
923
}
924
924
925
- private static IDictionary BuildClientPropertiesTable (
926
- IDictionary extraClientProperties )
925
+ public static IDictionary DefaultClientProperties ( )
927
926
{
928
927
System . Reflection . Assembly assembly =
929
928
System . Reflection . Assembly . GetAssembly ( typeof ( ConnectionBase ) ) ;
@@ -938,10 +937,6 @@ private static IDictionary BuildClientPropertiesTable(
938
937
"and Rabbit Technologies Ltd." ) ;
939
938
table [ "information" ] = Encoding . UTF8 . GetBytes ( "Licensed under the MPL. " +
940
939
"See http://www.rabbitmq.com/" ) ;
941
-
942
- foreach ( DictionaryEntry de in extraClientProperties )
943
- table [ de . Key ] = de . Value ;
944
-
945
940
return table ;
946
941
}
947
942
@@ -988,7 +983,7 @@ public void Open(bool insist)
988
983
serverVersion . Minor ) ;
989
984
}
990
985
991
- m_clientProperties = BuildClientPropertiesTable ( m_factory . ClientProperties ) ;
986
+ m_clientProperties = new Hashtable ( m_factory . ClientProperties ) ;
992
987
993
988
// FIXME: check that PLAIN is supported.
994
989
// FIXME: parse out locales properly!
You can’t perform that action at this time.
0 commit comments