2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.ServiceModel / System.ServiceModel.Configuration / MethodStubs.cs
blob6569fdac74bfca189fad06d8a1fd26fe2dc610eb
1 using System;
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;
9 using System.Xml;
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>
93 [MonoTODO]
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>
125 [MonoTODO]
126 protected override object GetElementKey (ConfigurationElement element)
128 throw new NotImplementedException ();