internal static bool IsDefined(EndToEndWebHttpSecurityMode value) { if (value == EndToEndWebHttpSecurityMode.None) { return(true); } return(value == EndToEndWebHttpSecurityMode.Transport); }
private WebHttpRelaySecurity(EndToEndWebHttpSecurityMode mode, Microsoft.ServiceBus.RelayClientAuthenticationType relayClientAuthenticationType, HttpRelayTransportSecurity transportSecurity) { this.Mode = mode; this.RelayClientAuthenticationType = relayClientAuthenticationType; this.transportSecurity = (transportSecurity == null ? new HttpRelayTransportSecurity() : transportSecurity); }
public WebHttpRelayBinding(EndToEndWebHttpSecurityMode securityMode, RelayClientAuthenticationType relayClientAuthenticationType) { this.Initialize(); this.security.RelayClientAuthenticationType = relayClientAuthenticationType; this.security.Mode = securityMode; }