| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System; |
| | | 5 | | using System.ComponentModel; |
| | | 6 | | using System.Configuration; |
| | | 7 | | using System.Text; |
| | | 8 | | |
| | | 9 | | namespace CoreWCF.Configuration |
| | | 10 | | { |
| | | 11 | | public abstract class HttpBindingBaseElement : StandardBindingElement |
| | | 12 | | { |
| | | 13 | | protected HttpBindingBaseElement(string name) |
| | 8 | 14 | | : base(name) |
| | | 15 | | { |
| | 8 | 16 | | } |
| | | 17 | | |
| | | 18 | | [ConfigurationProperty(ConfigurationStrings.AllowCookies, DefaultValue = false)] |
| | | 19 | | public bool AllowCookies |
| | | 20 | | { |
| | 0 | 21 | | get { throw new PlatformNotSupportedException(); } |
| | | 22 | | } |
| | | 23 | | |
| | | 24 | | [ConfigurationProperty(ConfigurationStrings.BypassProxyOnLocal, DefaultValue = false)] |
| | | 25 | | public bool BypassProxyOnLocal |
| | | 26 | | { |
| | 0 | 27 | | get { throw new PlatformNotSupportedException(); } |
| | | 28 | | } |
| | | 29 | | |
| | | 30 | | [ConfigurationProperty(ConfigurationStrings.HostNameComparisonMode, DefaultValue = HostNameComparisonMode.Strong |
| | | 31 | | public HostNameComparisonMode HostNameComparisonMode |
| | | 32 | | { |
| | 0 | 33 | | get { return (HostNameComparisonMode)base[ConfigurationStrings.HostNameComparisonMode]; } |
| | 0 | 34 | | set { base[ConfigurationStrings.HostNameComparisonMode] = value; } |
| | | 35 | | } |
| | | 36 | | |
| | | 37 | | [ConfigurationProperty(ConfigurationStrings.MaxBufferPoolSize, DefaultValue = 65535L)] |
| | | 38 | | public long MaxBufferPoolSize |
| | | 39 | | { |
| | 0 | 40 | | get { return (long)base[ConfigurationStrings.MaxBufferPoolSize]; } |
| | 0 | 41 | | set { base[ConfigurationStrings.MaxBufferPoolSize] = value; } |
| | | 42 | | } |
| | | 43 | | |
| | | 44 | | [ConfigurationProperty(ConfigurationStrings.MaxBufferSize, DefaultValue = 65536)] |
| | | 45 | | public int MaxBufferSize |
| | | 46 | | { |
| | 8 | 47 | | get { return (int)base[ConfigurationStrings.MaxBufferSize]; } |
| | 0 | 48 | | set { base[ConfigurationStrings.MaxBufferSize] = value; } |
| | | 49 | | } |
| | | 50 | | |
| | | 51 | | |
| | | 52 | | [ConfigurationProperty(ConfigurationStrings.MaxReceivedMessageSize, DefaultValue = 65536L)] |
| | | 53 | | public long MaxReceivedMessageSize |
| | | 54 | | { |
| | 8 | 55 | | get { return (long)base[ConfigurationStrings.MaxReceivedMessageSize]; } |
| | 0 | 56 | | set { base[ConfigurationStrings.MaxReceivedMessageSize] = value; } |
| | | 57 | | } |
| | | 58 | | |
| | | 59 | | [ConfigurationProperty(ConfigurationStrings.ProxyAddress, DefaultValue = null)] |
| | | 60 | | public Uri ProxyAddress |
| | | 61 | | { |
| | 0 | 62 | | get { return (Uri)base[ConfigurationStrings.ProxyAddress]; } |
| | 0 | 63 | | set { base[ConfigurationStrings.ProxyAddress] = value; } |
| | | 64 | | } |
| | | 65 | | |
| | | 66 | | [ConfigurationProperty(ConfigurationStrings.TextEncoding, DefaultValue = "utf-8")] |
| | | 67 | | [TypeConverter(typeof(EncodingConverter))] |
| | | 68 | | public Encoding TextEncoding |
| | | 69 | | { |
| | 6 | 70 | | get { return (Encoding)base[ConfigurationStrings.TextEncoding]; } |
| | 0 | 71 | | set { base[ConfigurationStrings.TextEncoding] = value; } |
| | | 72 | | } |
| | | 73 | | |
| | | 74 | | [ConfigurationProperty(ConfigurationStrings.TransferMode, DefaultValue = TransferMode.Buffered)] |
| | | 75 | | public TransferMode TransferMode |
| | | 76 | | { |
| | 6 | 77 | | get { return (TransferMode)base[ConfigurationStrings.TransferMode]; } |
| | 0 | 78 | | set { base[ConfigurationStrings.TransferMode] = value; } |
| | | 79 | | } |
| | | 80 | | |
| | | 81 | | [ConfigurationProperty(ConfigurationStrings.UseDefaultWebProxy, DefaultValue = true)] |
| | | 82 | | public bool UseDefaultWebProxy |
| | | 83 | | { |
| | 0 | 84 | | get { return (bool)base[ConfigurationStrings.UseDefaultWebProxy]; } |
| | 0 | 85 | | set { base[ConfigurationStrings.UseDefaultWebProxy] = value; } |
| | | 86 | | } |
| | | 87 | | |
| | | 88 | | [ConfigurationProperty(ConfigurationStrings.ReaderQuotas)] |
| | | 89 | | public XmlDictionaryReaderQuotasElement ReaderQuotas |
| | | 90 | | { |
| | 8 | 91 | | get { return (XmlDictionaryReaderQuotasElement)base[ConfigurationStrings.ReaderQuotas]; } |
| | | 92 | | } |
| | | 93 | | } |
| | | 94 | | } |