[eglib] Prefer <langinfo.h> to <localcharset.h>
[mono.git] / mcs / class / System.ServiceModel / Dummy_2_1.cs
1 using System.Collections.Generic;
2 using System.Reflection;
3 using System.Runtime.Serialization;
4 using System.Runtime.CompilerServices;
5 using System.ServiceModel.Channels;
6 using System.ServiceModel.Dispatcher;
7 using System.Text;
8 using System.Xml;
9
10 namespace System.Runtime.CompilerServices
11 {
12         // introduced for silverlight sdk compatibility
13         internal class FriendAccessAllowedAttribute : Attribute
14         {
15                 public FriendAccessAllowedAttribute ()
16                 {
17                 }
18         }
19 }
20
21 namespace System.ServiceModel
22 {
23         public class EndpointIdentity {}
24         public class InstanceContext
25         {
26                 public InstanceContext (object dummy) {}
27         }
28         // introduced for silverlight sdk compatibility
29         internal class OperationFormatStyleHelper
30         {
31                 public static bool IsDefined (OperationFormatStyle style)
32                 {
33                         switch (style) {
34                         case OperationFormatStyle.Document:
35                         case OperationFormatStyle.Rpc:
36                                 return true;
37                         }
38                         return false;
39                 }
40         }
41         
42         [FriendAccessAllowed]
43         internal interface IDispatchOperation
44         {
45                 bool DeserializeRequest { get; set; }
46                 IDispatchMessageFormatter Formatter { get; set; }
47                 string Name { get; }
48                 bool SerializeReply { get; set; }
49         }
50 }
51 namespace System.ServiceModel.Channels
52 {
53         public interface ITransportTokenAssertionProvider {}
54         public static class UrlUtility {
55                 public static string UrlEncode (string s, Encoding e)
56                 {
57                         return s;
58                 }
59
60                 public static string UrlDecode (string s, Encoding e)
61                 {
62                         return s;
63                 }
64         }
65 }
66 namespace System.ServiceModel.Channels.Http
67 {
68 }
69 namespace System.ServiceModel.Channels.Security
70 {
71 }
72 namespace System.ServiceModel.Configuration
73 {
74         class Dummy {}
75 }
76 namespace System.ServiceModel.Description
77 {
78         public interface IPolicyExportExtension {}
79         public interface IPolicyImportExtension {}
80         public interface IWsdlExportExtension {}
81         public interface IWsdlImportExtension {}
82
83         // introduced for silverlight sdk compatibility
84         internal class ServiceReflector
85         {
86                 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
87                 {
88                         T ret = default (T);
89                         foreach (Type t in types) {
90                                 foreach (object att in p.GetCustomAttributes (t, false)) {
91                                         if (att is T) {
92                                                 if (ret != null)
93                                                         throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
94                                                 ret = (T) att;
95                                         }
96                                 }
97                         }
98                         return ret;
99                 }
100         }
101 }
102 namespace System.ServiceModel
103 {
104         // introduced for silverlight sdk compatibility
105         internal interface IDuplexHelper { }
106
107         [FriendAccessAllowed ()]
108         internal class DiagnosticUtility
109         {
110                 [FriendAccessAllowed ()]
111                 internal class ExceptionUtility
112                 {
113                         public static Exception ThrowHelperArgument (string message) { throw new NotImplementedException (); }
114                         
115                         public static Exception ThrowHelperArgument (string paramName, string message) { throw new NotImplementedException (); }
116                         
117                         public static Exception ThrowHelperArgumentNull (string arg)
118                         {
119                                 return new ArgumentNullException (arg);
120                         }
121
122                         [FriendAccessAllowed]
123                         internal static Exception ThrowHelperCallback (Exception e) { throw new NotImplementedException (); }
124                         
125                         [FriendAccessAllowed]
126                         internal static Exception ThrowHelperCallback (string message, Exception innerException) { throw new NotImplementedException (); }
127                         
128                         public static Exception ThrowHelperError (Exception error)
129                         {
130                                 return error;
131                         }
132                         
133                         [FriendAccessAllowed]
134                         internal static Exception ThrowHelperFatal (string message, Exception innerException) { throw new NotImplementedException (); }
135                         
136                         [FriendAccessAllowed]
137                         internal static Exception ThrowHelperInternal (bool fatal) { throw new NotImplementedException (); }
138                         
139                         public static Exception ThrowHelperWarning (Exception e) { throw new NotImplementedException (); }
140                 }
141         }
142 }
143
144 namespace System.ServiceModel.Dispatcher
145 {
146         public sealed class EndpointDispatcher
147         {
148                 internal EndpointDispatcher ()
149                 {
150                 }
151         }
152
153         internal class FaultFormatter : IClientFaultFormatter
154         {
155                 internal FaultFormatter (Type[] detailTypes) { throw new NotImplementedException (); }
156                 internal FaultFormatter (SynchronizedCollection<FaultContractInfo> faultContractInfoCollection) { throw new NotImplementedException (); }
157                 protected virtual FaultException CreateFaultException (MessageFault messageFault, string action) { throw new NotImplementedException (); }
158                 protected FaultException CreateFaultException (MessageFault messageFault, string action, object detailObj, Type detailType, XmlDictionaryReader detailReader) { throw new NotImplementedException (); }
159                 public FaultException Deserialize (MessageFault messageFault, string action) { throw new NotImplementedException (); }
160                 protected virtual XmlObjectSerializer GetSerializer (Type detailType, string faultExceptionAction, out string action) { throw new NotImplementedException (); }
161         }
162
163         internal interface IClientFaultFormatter
164         {
165                 FaultException Deserialize (MessageFault messageFault, string action);
166         }
167 }
168 namespace System.ServiceModel.Security
169 {
170         class Dummy {}
171 }
172 #if !MOBILE
173 namespace System.Net.Security
174 {
175         public enum ProtectionLevel {None}
176 }
177 namespace System.Xml.Serialization
178 {
179         public class XmlTypeMapping {}
180 }
181 namespace System.Xml.XPath
182 {
183         class Dummy {}
184 }
185 namespace Mono.Xml.XPath
186 {
187         class Dummy {}
188 }
189 #endif