@@ -99,15 +99,35 @@ public int Port
99
99
set { m_port = value ; }
100
100
}
101
101
102
+
103
+ private SslOption m_ssl ;
104
+ ///<summary>Retrieve the SSL options for this AmqpTcpEndpoint.
105
+ ///If not set, null is returned</summary>
106
+ public SslOption Ssl
107
+ {
108
+ get { return m_ssl ; }
109
+ set { m_ssl = value ; }
110
+ }
111
+
102
112
///<summary>Construct an AmqpTcpEndpoint with the given
103
- ///IProtocol, hostname, and port number. If the port number is
104
- ///-1, the default port number for the IProtocol will be
105
- ///used.</summary>
106
- public AmqpTcpEndpoint ( IProtocol protocol , string hostName , int portOrMinusOne )
113
+ ///IProtocol, hostname, port number and ssl option . If the port
114
+ ///number is -1, the default port number for the IProtocol
115
+ ///will be used.</summary>
116
+ public AmqpTcpEndpoint ( IProtocol protocol , string hostName , int portOrMinusOne , SslOption ssl )
107
117
{
108
118
m_protocol = protocol ;
109
119
m_hostName = hostName ;
110
120
m_port = portOrMinusOne ;
121
+ m_ssl = ssl ;
122
+ }
123
+
124
+ ///<summary>Construct an AmqpTcpEndpoint with the given
125
+ ///IProtocol, hostname, and port number. If the port number is
126
+ ///-1, the default port number for the IProtocol will be
127
+ ///used.</summary>
128
+ public AmqpTcpEndpoint ( IProtocol protocol , string hostName , int portOrMinusOne ) :
129
+ this ( protocol , hostName , portOrMinusOne , new SslOption ( ) )
130
+ {
111
131
}
112
132
113
133
///<summary>Construct an AmqpTcpEndpoint with the given
@@ -154,6 +174,17 @@ public AmqpTcpEndpoint() :
154
174
{
155
175
}
156
176
177
+ ///<summary>Construct an AmqpTcpEndpoint with the given
178
+ ///IProtocol, Uri and ssl options.</summary>
179
+ ///<remarks>
180
+ /// Please see the class overview documentation for
181
+ /// information about the Uri format in use.
182
+ ///</remarks>
183
+ public AmqpTcpEndpoint ( IProtocol protocol , Uri uri , SslOption ssl ) :
184
+ this ( protocol , uri . Host , uri . Port , ssl )
185
+ {
186
+ }
187
+
157
188
///<summary>Construct an AmqpTcpEndpoint with the given
158
189
///IProtocol and Uri.</summary>
159
190
///<remarks>
0 commit comments