[bcl] netstandart 1.6 support
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Configuration / MethodStubs.cs
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;
10
11 using ConfigurationType = System.Configuration.Configuration;
12
13 namespace System.ServiceModel.Configuration
14 {
15
16 // ChannelEndpointElementCollection
17         public sealed partial class ChannelEndpointElementCollection
18                  : ServiceModelEnhancedConfigurationElementCollection<ChannelEndpointElement>
19         {
20                 protected override object GetElementKey (ConfigurationElement element)
21                 {
22                         ChannelEndpointElement el = (ChannelEndpointElement) element;
23                         return el.Name + ";" + el.Contract;
24                 }
25         }
26
27 // ClaimTypeElementCollection
28         public sealed partial class ClaimTypeElementCollection
29                  : ServiceModelConfigurationElementCollection<ClaimTypeElement>,  ICollection,  IEnumerable
30         {
31                 protected override object GetElementKey (ConfigurationElement element)
32                 {
33                         return ((ClaimTypeElement) element).ClaimType;
34                 }
35         }
36
37 // ComContractElementCollection
38         public sealed partial class ComContractElementCollection
39                  : ServiceModelEnhancedConfigurationElementCollection<ComContractElement>
40         {
41                 protected override object GetElementKey (ConfigurationElement element)
42                 {
43                         return ((ComContractElement) element).Name;
44                 }
45         }
46
47 // ComMethodElementCollection
48         public sealed partial class ComMethodElementCollection
49                  : ServiceModelEnhancedConfigurationElementCollection<ComMethodElement>
50         {
51                 protected override object GetElementKey (ConfigurationElement element)
52                 {
53                         return ((ComMethodElement) element).ExposedMethod;
54                 }
55         }
56
57 // ComPersistableTypeElementCollection
58         public sealed partial class ComPersistableTypeElementCollection
59                  : ServiceModelEnhancedConfigurationElementCollection<ComPersistableTypeElement>
60         {
61                 protected override object GetElementKey (ConfigurationElement element)
62                 {
63                         // FIXME: ID? anyways, cosmetic COM stuff...
64                         return ((ComPersistableTypeElement) element).Name;
65                 }
66         }
67
68 // ComUdtElementCollection
69         public sealed partial class ComUdtElementCollection
70                  : ServiceModelEnhancedConfigurationElementCollection<ComUdtElement>
71         {
72                 protected override object GetElementKey (ConfigurationElement element)
73                 {
74                         // FIXME: another property? anyways COM stuff...
75                         return ((ComUdtElement) element).Name;
76                 }
77         }
78
79 // CustomBindingElementCollection
80         public sealed partial class CustomBindingElementCollection
81                  : ServiceModelEnhancedConfigurationElementCollection<CustomBindingElement>,  ICollection,  IEnumerable
82         {
83                 protected override object GetElementKey (ConfigurationElement element)
84                 {
85                         return ((CustomBindingElement) element).Name;
86                 }
87         }
88
89 // IssuedTokenClientBehaviorsElementCollection
90         public sealed partial class IssuedTokenClientBehaviorsElementCollection
91                  : ServiceModelConfigurationElementCollection<IssuedTokenClientBehaviorsElement>
92         {
93                 [MonoTODO]
94                 protected override object GetElementKey (ConfigurationElement element)
95                 {
96                         throw new NotImplementedException ();
97                 }
98         }
99
100 // StandardBindingElementCollection
101         public sealed partial class StandardBindingElementCollection<TBindingConfiguration>
102                  : ServiceModelEnhancedConfigurationElementCollection<TBindingConfiguration>,  ICollection,  IEnumerable
103                  where TBindingConfiguration : StandardBindingElement, new()
104         {
105                 protected override object GetElementKey (ConfigurationElement element)
106                 {
107                         return ((StandardBindingElement) element).Name;
108                 }
109         }
110
111 // TransportConfigurationTypeElementCollection
112         public sealed partial class TransportConfigurationTypeElementCollection
113                  : ServiceModelConfigurationElementCollection<TransportConfigurationTypeElement>
114         {
115                 protected override object GetElementKey (ConfigurationElement element)
116                 {
117                         return ((TransportConfigurationTypeElement) element).Name;
118                 }
119         }
120
121 // XPathMessageFilterElementCollection
122         public sealed partial class XPathMessageFilterElementCollection
123                  : ServiceModelConfigurationElementCollection<XPathMessageFilterElement>
124         {
125                 [MonoTODO]
126                 protected override object GetElementKey (ConfigurationElement element)
127                 {
128                         throw new NotImplementedException ();
129                 }
130         }
131 }