public override BindingElementCollection CreateBindingElements() { var elements = new BindingElementCollection(); elements.Clear(); elements.Add(CreateSecurityBindingElement()); elements.Add(CreateMessageEncodingBindingElement()); elements.Add(CreateTransportBindingElement()); return elements.Clone(); }
public override BindingElementCollection CreateBindingElements() { BindingElementCollection elements = new BindingElementCollection(); elements.Clear(); if ((SecurityMode.Message == this._securityMode) || (SecurityMode.TransportWithMessageCredential == this._securityMode)) { elements.Add(this.ApplyMessageSecurity(this.CreateSecurityBindingElement())); } elements.Add(this.CreateEncodingBindingElement()); elements.Add(this.CreateTransportBindingElement()); return elements.Clone(); }
/// <summary> /// Creates binding elements required for trust message exchange /// </summary> /// <returns>Returns Binding elements created</returns> public override BindingElementCollection CreateBindingElements() { BindingElementCollection elements = new BindingElementCollection(); elements.Clear(); if ((SecurityMode.Message == _securityMode) || (SecurityMode.TransportWithMessageCredential == _securityMode)) { elements.Add(ApplyMessageSecurity(CreateSecurityBindingElement())); } elements.Add(CreateEncodingBindingElement()); elements.Add(CreateTransportBindingElement()); return(elements.Clone()); }