2 using System.Collections.Generic;
3 using System.Reflection;
4 using System.Runtime.Serialization;
5 using System.Runtime.CompilerServices;
6 using System.ServiceModel.Channels;
7 using System.ServiceModel.Dispatcher;
11 namespace System.Runtime.CompilerServices
13 // introduced for silverlight sdk compatibility
14 internal class FriendAccessAllowedAttribute : Attribute
16 public FriendAccessAllowedAttribute ()
22 namespace System.ServiceModel
24 public class EndpointIdentity {}
25 public class InstanceContext
27 public InstanceContext (object dummy) {}
29 // introduced for silverlight sdk compatibility
30 internal class OperationFormatStyleHelper
32 public static bool IsDefined (OperationFormatStyle style)
35 case OperationFormatStyle.Document:
36 case OperationFormatStyle.Rpc:
44 internal interface IDispatchOperation
46 bool DeserializeRequest { get; set; }
47 IDispatchMessageFormatter Formatter { get; set; }
49 bool SerializeReply { get; set; }
52 namespace System.ServiceModel.Channels
54 public interface ITransportTokenAssertionProvider {}
55 public static class UrlUtility {
56 public static string UrlEncode (string s, Encoding e)
61 public static string UrlDecode (string s, Encoding e)
67 namespace System.ServiceModel.Channels.Http
70 namespace System.ServiceModel.Channels.Security
73 namespace System.ServiceModel.Configuration
77 namespace System.ServiceModel.Description
79 public interface IPolicyExportExtension {}
80 public interface IPolicyImportExtension {}
81 public interface IWsdlExportExtension {}
82 public interface IWsdlImportExtension {}
84 // introduced for silverlight sdk compatibility
85 internal class ServiceReflector
87 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
90 foreach (Type t in types) {
91 foreach (object att in p.GetCustomAttributes (t, false)) {
94 throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
103 namespace System.ServiceModel
105 // introduced for silverlight sdk compatibility
106 internal interface IDuplexHelper { }
108 [FriendAccessAllowed ()]
109 internal class DiagnosticUtility
111 [FriendAccessAllowed ()]
112 internal class ExceptionUtility
114 public static Exception ThrowHelperArgument (string message) { throw new NotImplementedException (); }
116 public static Exception ThrowHelperArgument (string paramName, string message) { throw new NotImplementedException (); }
118 public static Exception ThrowHelperArgumentNull (string arg)
120 return new ArgumentNullException (arg);
123 [FriendAccessAllowed]
124 internal static Exception ThrowHelperCallback (Exception e) { throw new NotImplementedException (); }
126 [FriendAccessAllowed]
127 internal static Exception ThrowHelperCallback (string message, Exception innerException) { throw new NotImplementedException (); }
129 public static Exception ThrowHelperError (Exception error)
134 [FriendAccessAllowed]
135 internal static Exception ThrowHelperFatal (string message, Exception innerException) { throw new NotImplementedException (); }
137 [FriendAccessAllowed]
138 internal static Exception ThrowHelperInternal (bool fatal) { throw new NotImplementedException (); }
140 public static Exception ThrowHelperWarning (Exception e) { throw new NotImplementedException (); }
145 namespace System.ServiceModel.Dispatcher
147 public sealed class EndpointDispatcher
149 internal EndpointDispatcher ()
154 internal class FaultFormatter : IClientFaultFormatter
156 internal FaultFormatter (Type[] detailTypes) { throw new NotImplementedException (); }
157 internal FaultFormatter (SynchronizedCollection<FaultContractInfo> faultContractInfoCollection) { throw new NotImplementedException (); }
158 protected virtual FaultException CreateFaultException (MessageFault messageFault, string action) { throw new NotImplementedException (); }
159 protected FaultException CreateFaultException (MessageFault messageFault, string action, object detailObj, Type detailType, XmlDictionaryReader detailReader) { throw new NotImplementedException (); }
160 public FaultException Deserialize (MessageFault messageFault, string action) { throw new NotImplementedException (); }
161 protected virtual XmlObjectSerializer GetSerializer (Type detailType, string faultExceptionAction, out string action) { throw new NotImplementedException (); }
164 internal interface IClientFaultFormatter
166 FaultException Deserialize (MessageFault messageFault, string action);
169 namespace System.ServiceModel.Security
174 namespace System.Net.Security
176 public enum ProtectionLevel {None}
178 namespace System.Xml.Serialization
180 public class XmlTypeMapping {}
182 namespace System.Xml.XPath
186 namespace Mono.Xml.XPath