/// <summary> /// Initializes a new instance of the <see cref="HttpMessageBinding"/> class with the /// type of security used by the binding explicitly specified. /// </summary> /// <param name="securityMode">The value of <see cref="HttpMessageBindingSecurityMode"/> that /// specifies the type of security that is used to configure a service endpoint using the /// <see cref="HttpMessageBinding"/> binding. /// </param> public HttpMessageBinding(HttpMessageBindingSecurityMode securityMode) : this() { this.security.Mode = securityMode; }
/// <summary> /// Creates a new instance of the <see cref="HttpMessageBindingSecurity"/> class. /// </summary> public HttpMessageBindingSecurity() { this.mode = DefaultMode; this.transportSecurity = new HttpTransportSecurity(); }
/// <summary> /// Initializes a new instance of the <see cref="HttpMessageBinding"/> class with the /// type of security used by the binding explicitly specified. /// </summary> /// <param name="securityMode">The value of <see cref="HttpMessageBindingSecurityMode"/> that /// specifies the type of security that is used to configure a service endpoint using the /// <see cref="HttpMessageBinding"/> binding. /// </param> public HttpMessageBinding(HttpMessageBindingSecurityMode securityMode) : this() { this.security.Mode = securityMode; }
internal static bool IsDefined(HttpMessageBindingSecurityMode value) { return(value == HttpMessageBindingSecurityMode.None || value == HttpMessageBindingSecurityMode.Transport || value == HttpMessageBindingSecurityMode.TransportCredentialOnly); }
/// <summary> /// Creates a new instance of the <see cref="HttpMessageBindingSecurity"/> class. /// </summary> public HttpMessageBindingSecurity() { this.mode = DefaultMode; this.transportSecurity = new HttpTransportSecurity(); }