|
55 | 55 | //
|
56 | 56 | //---------------------------------------------------------------------------
|
57 | 57 | using System;
|
| 58 | +using System.Collections; |
58 | 59 |
|
59 | 60 | namespace RabbitMQ.Client
|
60 | 61 | {
|
@@ -83,13 +84,18 @@ public class ConnectionParameters : ICloneable
|
83 | 84 | /// seconds, with zero meaning none (value: 0)</summary>
|
84 | 85 | public const ushort DefaultHeartbeat = 0; // PLEASE KEEP THIS MATCHING THE DOC ABOVE
|
85 | 86 |
|
| 87 | + /// <summary>Default extra client properties to be sent to the |
| 88 | + /// server (value: empty Hashtable)</summary> |
| 89 | + public static readonly IDictionary DefaultClientProperties = new Hashtable(); // PLEASE KEEP THIS MATCHING THE DOC ABOVE |
| 90 | + |
86 | 91 | private string m_userName = DefaultUser;
|
87 | 92 | private string m_password = DefaultPass;
|
88 | 93 | private string m_virtualHost = DefaultVHost;
|
89 | 94 | private ushort m_requestedChannelMax = DefaultChannelMax;
|
90 | 95 | private uint m_requestedFrameMax = DefaultFrameMax;
|
91 | 96 | private ushort m_requestedHeartbeat = DefaultHeartbeat;
|
92 | 97 | private SslOption m_ssl = new SslOption();
|
| 98 | + private IDictionary m_clientProperties = DefaultClientProperties; |
93 | 99 |
|
94 | 100 | ///<summary>Construct a fresh instance, with all fields set to
|
95 | 101 | ///their respective defaults.</summary>
|
@@ -144,6 +150,13 @@ public SslOption Ssl
|
144 | 150 | set { m_ssl = value; }
|
145 | 151 | }
|
146 | 152 |
|
| 153 | + ///<summary>Extra client properties to be sent to the server</summary> |
| 154 | + public IDictionary ClientProperties |
| 155 | + { |
| 156 | + get { return m_clientProperties; } |
| 157 | + set { m_clientProperties = value; } |
| 158 | + } |
| 159 | + |
147 | 160 | ///<summary>Implement ICloneable.Clone by delegating to our type-safe variant.</summary>
|
148 | 161 | object ICloneable.Clone()
|
149 | 162 | {
|
|
0 commit comments