| | | 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.Configuration; |
| | | 5 | | |
| | | 6 | | namespace CoreWCF.Configuration |
| | | 7 | | { |
| | | 8 | | public sealed class IssuedTokenParametersEndpointAddressElement : EndpointAddressElementBase |
| | | 9 | | { |
| | 1 | 10 | | public IssuedTokenParametersEndpointAddressElement() |
| | | 11 | | { |
| | 1 | 12 | | } |
| | | 13 | | |
| | | 14 | | [ConfigurationProperty(ConfigurationStrings.Binding, DefaultValue = "")] |
| | | 15 | | public string Binding |
| | | 16 | | { |
| | 0 | 17 | | get { return (string)base[ConfigurationStrings.Binding]; } |
| | | 18 | | set |
| | | 19 | | { |
| | 0 | 20 | | if (string.IsNullOrEmpty(value)) |
| | | 21 | | { |
| | 0 | 22 | | value = string.Empty; |
| | | 23 | | } |
| | 0 | 24 | | base[ConfigurationStrings.Binding] = value; |
| | 0 | 25 | | } |
| | | 26 | | } |
| | | 27 | | |
| | | 28 | | [ConfigurationProperty(ConfigurationStrings.BindingConfiguration, DefaultValue = "")] |
| | | 29 | | public string BindingConfiguration |
| | | 30 | | { |
| | 0 | 31 | | get { return (string)base[ConfigurationStrings.BindingConfiguration]; } |
| | | 32 | | set |
| | | 33 | | { |
| | 0 | 34 | | if (string.IsNullOrEmpty(value)) |
| | | 35 | | { |
| | 0 | 36 | | value = string.Empty; |
| | | 37 | | } |
| | 0 | 38 | | base[ConfigurationStrings.BindingConfiguration] = value; |
| | 0 | 39 | | } |
| | | 40 | | } |
| | | 41 | | |
| | | 42 | | internal void Copy(IssuedTokenParametersEndpointAddressElement source) |
| | | 43 | | { |
| | 0 | 44 | | base.Copy(source); |
| | 0 | 45 | | BindingConfiguration = source.BindingConfiguration; |
| | 0 | 46 | | Binding = source.Binding; |
| | 0 | 47 | | } |
| | | 48 | | |
| | | 49 | | } |
| | | 50 | | } |