/// <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;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new instance of the <see cref="HttpMessageBindingSecurity"/> class.
 /// </summary>
 public HttpMessageBindingSecurity()
 {
     this.mode = DefaultMode;
     this.transportSecurity = new HttpTransportSecurity();
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 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();
 }