2 using System
.Collections
;
3 using System
.Collections
.Generic
;
4 using System
.Collections
.ObjectModel
;
5 using System
.Configuration
;
6 using System
.ServiceModel
;
7 using System
.ServiceModel
.Channels
;
8 using System
.ServiceModel
.Description
;
11 using ConfigurationType
= System
.Configuration
.Configuration
;
13 namespace System
.ServiceModel
.Configuration
16 // ChannelEndpointElementCollection
17 public sealed partial class ChannelEndpointElementCollection
18 : ServiceModelEnhancedConfigurationElementCollection
<ChannelEndpointElement
>
20 protected override object GetElementKey (ConfigurationElement element
)
22 ChannelEndpointElement el
= (ChannelEndpointElement
) element
;
23 return el
.Name
+ ";" + el
.Contract
;
27 // ClaimTypeElementCollection
28 public sealed partial class ClaimTypeElementCollection
29 : ServiceModelConfigurationElementCollection
<ClaimTypeElement
>, ICollection
, IEnumerable
31 protected override object GetElementKey (ConfigurationElement element
)
33 return ((ClaimTypeElement
) element
).ClaimType
;
37 // ComContractElementCollection
38 public sealed partial class ComContractElementCollection
39 : ServiceModelEnhancedConfigurationElementCollection
<ComContractElement
>
41 protected override object GetElementKey (ConfigurationElement element
)
43 return ((ComContractElement
) element
).Name
;
47 // ComMethodElementCollection
48 public sealed partial class ComMethodElementCollection
49 : ServiceModelEnhancedConfigurationElementCollection
<ComMethodElement
>
51 protected override object GetElementKey (ConfigurationElement element
)
53 return ((ComMethodElement
) element
).ExposedMethod
;
57 // ComPersistableTypeElementCollection
58 public sealed partial class ComPersistableTypeElementCollection
59 : ServiceModelEnhancedConfigurationElementCollection
<ComPersistableTypeElement
>
61 protected override object GetElementKey (ConfigurationElement element
)
63 // FIXME: ID? anyways, cosmetic COM stuff...
64 return ((ComPersistableTypeElement
) element
).Name
;
68 // ComUdtElementCollection
69 public sealed partial class ComUdtElementCollection
70 : ServiceModelEnhancedConfigurationElementCollection
<ComUdtElement
>
72 protected override object GetElementKey (ConfigurationElement element
)
74 // FIXME: another property? anyways COM stuff...
75 return ((ComUdtElement
) element
).Name
;
79 // CustomBindingElementCollection
80 public sealed partial class CustomBindingElementCollection
81 : ServiceModelEnhancedConfigurationElementCollection
<CustomBindingElement
>, ICollection
, IEnumerable
83 protected override object GetElementKey (ConfigurationElement element
)
85 return ((CustomBindingElement
) element
).Name
;
89 // IssuedTokenClientBehaviorsElementCollection
90 public sealed partial class IssuedTokenClientBehaviorsElementCollection
91 : ServiceModelConfigurationElementCollection
<IssuedTokenClientBehaviorsElement
>
94 protected override object GetElementKey (ConfigurationElement element
)
96 throw new NotImplementedException ();
100 // StandardBindingElementCollection
101 public sealed partial class StandardBindingElementCollection
<TBindingConfiguration
>
102 : ServiceModelEnhancedConfigurationElementCollection
<TBindingConfiguration
>, ICollection
, IEnumerable
103 where TBindingConfiguration
: StandardBindingElement
, new()
105 protected override object GetElementKey (ConfigurationElement element
)
107 return ((StandardBindingElement
) element
).Name
;
111 // TransportConfigurationTypeElementCollection
112 public sealed partial class TransportConfigurationTypeElementCollection
113 : ServiceModelConfigurationElementCollection
<TransportConfigurationTypeElement
>
115 protected override object GetElementKey (ConfigurationElement element
)
117 return ((TransportConfigurationTypeElement
) element
).Name
;
121 // XPathMessageFilterElementCollection
122 public sealed partial class XPathMessageFilterElementCollection
123 : ServiceModelConfigurationElementCollection
<XPathMessageFilterElement
>
126 protected override object GetElementKey (ConfigurationElement element
)
128 throw new NotImplementedException ();