@@ -91,15 +91,35 @@ public int Port
91
91
set { m_port = value ; }
92
92
}
93
93
94
+
95
+ private SslOption m_ssl ;
96
+ ///<summary>Retrieve the SSL options for this AmqpTcpEndpoint.
97
+ ///If not set, null is returned</summary>
98
+ public SslOption Ssl
99
+ {
100
+ get { return m_ssl ; }
101
+ set { m_ssl = value ; }
102
+ }
103
+
94
104
///<summary>Construct an AmqpTcpEndpoint with the given
95
105
///IProtocol, hostname, and port number. If the port number is
96
106
///-1, the default port number for the IProtocol will be
97
107
///used.</summary>
98
- public AmqpTcpEndpoint ( IProtocol protocolVariant , string hostname , int portOrMinusOne )
108
+ public AmqpTcpEndpoint ( IProtocol protocolVariant , string hostname , int portOrMinusOne ) :
109
+ this ( protocolVariant , hostname , portOrMinusOne , new SslOption ( ) )
110
+ {
111
+ }
112
+
113
+ ///<summary>Construct an AmqpTcpEndpoint with the given
114
+ ///IProtocol, hostname, port number and Ssl option. If the port
115
+ ///number is -1, the default port number for the IProtocol
116
+ ///will be used.</summary>
117
+ public AmqpTcpEndpoint ( IProtocol protocolVariant , string hostname , int portOrMinusOne , SslOption ssl )
99
118
{
100
119
m_protocol = protocolVariant ;
101
120
m_hostName = hostname ;
102
121
m_port = portOrMinusOne ;
122
+ m_ssl = ssl ;
103
123
}
104
124
105
125
///<summary>Returns a URI-like string of the form
0 commit comments