[Modify] Add it

This commit is contained in:
sta 2017-05-11 15:38:27 +09:00
parent 3793b4112e
commit a748e1bd16

View File

@ -34,6 +34,7 @@
*/
#endregion
using System;
using System.Net.Security;
using System.Security.Authentication;
using System.Security.Cryptography.X509Certificates;
@ -79,6 +80,29 @@ namespace WebSocketSharp.Net
{
}
/// <summary>
/// Copies the parameters from the specified <paramref name="configuration"/> to
/// a new instance of the <see cref="ClientSslConfiguration"/> class.
/// </summary>
/// <param name="configuration">
/// A <see cref="ClientSslConfiguration"/> from which to copy.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="configuration"/> is <see langword="null"/>.
/// </exception>
public ClientSslConfiguration (ClientSslConfiguration configuration)
{
if (configuration == null)
throw new ArgumentNullException ("configuration");
_checkCertRevocation = configuration._checkCertRevocation;
_clientCertSelectionCallback = configuration._clientCertSelectionCallback;
_clientCerts = configuration._clientCerts;
_enabledSslProtocols = configuration._enabledSslProtocols;
_serverCertValidationCallback = configuration._serverCertValidationCallback;
_targetHost = configuration._targetHost;
}
/// <summary>
/// Initializes a new instance of the <see cref="ClientSslConfiguration"/> class
/// with the specified <paramref name="targetHost"/>,