@@ -127,66 +127,30 @@ public class ConnectionFactory
127
127
/// seconds, with zero meaning none (value: 0)</summary>
128
128
public const ushort DefaultHeartbeat = 0 ; // PLEASE KEEP THIS MATCHING THE DOC ABOVE
129
129
130
- private string m_userName = DefaultUser ;
131
- private string m_password = DefaultPass ;
132
- private string m_virtualHost = DefaultVHost ;
133
- private ushort m_requestedChannelMax = DefaultChannelMax ;
134
- private uint m_requestedFrameMax = DefaultFrameMax ;
135
- private ushort m_requestedHeartbeat = DefaultHeartbeat ;
136
- private SslOption m_ssl = new SslOption ( ) ;
137
-
138
- ///<summary>Construct a fresh instance, with all fields set to
139
- ///their respective defaults.</summary>
140
- public ConnectionFactory ( ) { }
141
-
142
130
/// <summary>Username to use when authenticating to the server</summary>
143
- public string UserName
144
- {
145
- get { return m_userName ; }
146
- set { m_userName = value ; }
147
- }
131
+ public string UserName = DefaultUser ;
148
132
149
133
/// <summary>Password to use when authenticating to the server</summary>
150
- public string Password
151
- {
152
- get { return m_password ; }
153
- set { m_password = value ; }
154
- }
134
+ public string Password = DefaultPass ;
155
135
156
136
/// <summary>Virtual host to access during this connection</summary>
157
- public string VirtualHost
158
- {
159
- get { return m_virtualHost ; }
160
- set { m_virtualHost = value ; }
161
- }
137
+ public string VirtualHost = DefaultVHost ;
162
138
163
139
/// <summary>Maximum channel number to ask for</summary>
164
- public ushort RequestedChannelMax
165
- {
166
- get { return m_requestedChannelMax ; }
167
- set { m_requestedChannelMax = value ; }
168
- }
140
+ public ushort RequestedChannelMax = DefaultChannelMax ;
169
141
170
142
/// <summary>Frame-max parameter to ask for (in bytes)</summary>
171
- public uint RequestedFrameMax
172
- {
173
- get { return m_requestedFrameMax ; }
174
- set { m_requestedFrameMax = value ; }
175
- }
143
+ public uint RequestedFrameMax = DefaultFrameMax ;
176
144
177
145
/// <summary>Heartbeat setting to request (in seconds)</summary>
178
- public ushort RequestedHeartbeat
179
- {
180
- get { return m_requestedHeartbeat ; }
181
- set { m_requestedHeartbeat = value ; }
182
- }
146
+ public ushort RequestedHeartbeat = DefaultHeartbeat ;
183
147
184
148
///<summary>Ssl options setting</summary>
185
- public SslOption Ssl
186
- {
187
- get { return m_ssl ; }
188
- set { m_ssl = value ; }
189
- }
149
+ public SslOption Ssl = new SslOption ( ) ;
150
+
151
+ ///<summary>Construct a fresh instance, with all fields set to
152
+ ///their respective defaults.</summary>
153
+ public ConnectionFactory ( ) { }
190
154
191
155
protected virtual IConnection FollowRedirectChain
192
156
( int maxRedirects ,
0 commit comments