public CertificateBinding(string certificateThumbprint, string certificateStoreName, IPEndPoint ipPort, Guid appId, BindingOptions options = null) {

			if (certificateThumbprint == null) throw new ArgumentNullException("certificateThumbprint");
			if (ipPort == null) throw new ArgumentNullException("ipPort");

			if (certificateStoreName == null) {
				// StoreName of null is assumed to be My / Personal
				// https://msdn.microsoft.com/en-us/library/windows/desktop/aa364647(v=vs.85).aspx
				certificateStoreName = "MY";
			}

			Thumbprint = certificateThumbprint;
			StoreName = certificateStoreName;
			IpPort = ipPort;
			AppId = appId;
			Options = options ?? new BindingOptions();
		}
        public CertificateBinding(string certificateThumbprint, string certificateStoreName, IPEndPoint ipPort, Guid appId, BindingOptions options = null)
        {
            if (certificateThumbprint == null)
            {
                throw new ArgumentNullException("certificateThumbprint");
            }
            if (ipPort == null)
            {
                throw new ArgumentNullException("ipPort");
            }

            if (certificateStoreName == null)
            {
                // StoreName of null is assumed to be My / Personal
                // https://msdn.microsoft.com/en-us/library/windows/desktop/aa364647(v=vs.85).aspx
                certificateStoreName = "MY";
            }

            Thumbprint = certificateThumbprint;
            StoreName  = certificateStoreName;
            IpPort     = ipPort;
            AppId      = appId;
            Options    = options ?? new BindingOptions();
        }
		public CertificateBinding(string certificateThumbprint, StoreName certificateStoreName, IPEndPoint ipPort, Guid appId, BindingOptions options = null)
			: this(certificateThumbprint, certificateStoreName.ToString(), ipPort, appId, options) { }
 public CertificateBinding(string certificateThumbprint, StoreName certificateStoreName, IPEndPoint ipPort, Guid appId, BindingOptions options = null)
     : this(certificateThumbprint, certificateStoreName.ToString(), ipPort, appId, options)
 {
 }