public override Binding CreateBinding() { var binding = new WSHttpBinding(Security.Mode) { CloseTimeout = CloseTimeout, MaxBufferPoolSize = MaxBufferPoolSize, MaxReceivedMessageSize = MaxReceivedMessageSize, Name = Name, OpenTimeout = OpenTimeout, ReaderQuotas = ReaderQuotas.Clone(), ReceiveTimeout = ReceiveTimeout, SendTimeout = SendTimeout, }; //binding.AllowCookies = this.AllowCookies; Security.ApplyConfiguration(binding.Security); return(binding); }
public override Binding CreateBinding() { var binding = new NetHttpBinding(Security.Mode) { Name = Name, MaxReceivedMessageSize = MaxReceivedMessageSize, MaxBufferSize = MaxBufferSize, ReceiveTimeout = ReceiveTimeout, CloseTimeout = CloseTimeout, OpenTimeout = OpenTimeout, SendTimeout = SendTimeout, TransferMode = TransferMode, TextEncoding = TextEncoding, MessageEncoding = MessageEncoding, ReaderQuotas = ReaderQuotas.Clone(), }; binding.MessageEncoding = MessageEncoding; //WebSocketSettings.ApplyConfiguration(netHttpBinding.WebSocketSettings); // this.ReliableSession.ApplyConfiguration(netHttpBinding.ReliableSession); Security.ApplyConfiguration(binding.Security); return(binding); }