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;
10 namespace System.Runtime.CompilerServices
12 // introduced for silverlight sdk compatibility
13 internal class FriendAccessAllowedAttribute : Attribute
15 public FriendAccessAllowedAttribute ()
21 namespace System.ServiceModel
23 public class EndpointIdentity {}
24 public class InstanceContext
26 public InstanceContext (object dummy) {}
28 // introduced for silverlight sdk compatibility
29 internal class OperationFormatStyleHelper
31 public static bool IsDefined (OperationFormatStyle style)
34 case OperationFormatStyle.Document:
35 case OperationFormatStyle.Rpc:
43 internal interface IDispatchOperation
45 bool DeserializeRequest { get; set; }
46 IDispatchMessageFormatter Formatter { get; set; }
48 bool SerializeReply { get; set; }
51 namespace System.ServiceModel.Channels
53 public interface ITransportTokenAssertionProvider {}
54 public static class UrlUtility {
55 public static string UrlEncode (string s, Encoding e)
60 public static string UrlDecode (string s, Encoding e)
66 namespace System.ServiceModel.Channels.Http
69 namespace System.ServiceModel.Channels.Security
72 namespace System.ServiceModel.Configuration
76 namespace System.ServiceModel.Description
78 public interface IPolicyExportExtension {}
79 public interface IPolicyImportExtension {}
80 public interface IWsdlExportExtension {}
81 public interface IWsdlImportExtension {}
83 // introduced for silverlight sdk compatibility
84 internal class ServiceReflector
86 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
89 foreach (Type t in types) {
90 foreach (object att in p.GetCustomAttributes (t, false)) {
93 throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
102 namespace System.ServiceModel
104 // introduced for silverlight sdk compatibility
105 internal interface IDuplexHelper { }
107 [FriendAccessAllowed ()]
108 internal class DiagnosticUtility
110 [FriendAccessAllowed ()]
111 internal class ExceptionUtility
113 public static Exception ThrowHelperArgument (string message) { throw new NotImplementedException (); }
115 public static Exception ThrowHelperArgument (string paramName, string message) { throw new NotImplementedException (); }
117 public static Exception ThrowHelperArgumentNull (string arg)
119 return new ArgumentNullException (arg);
122 [FriendAccessAllowed]
123 internal static Exception ThrowHelperCallback (Exception e) { throw new NotImplementedException (); }
125 [FriendAccessAllowed]
126 internal static Exception ThrowHelperCallback (string message, Exception innerException) { throw new NotImplementedException (); }
128 public static Exception ThrowHelperError (Exception error)
133 [FriendAccessAllowed]
134 internal static Exception ThrowHelperFatal (string message, Exception innerException) { throw new NotImplementedException (); }
136 [FriendAccessAllowed]
137 internal static Exception ThrowHelperInternal (bool fatal) { throw new NotImplementedException (); }
139 public static Exception ThrowHelperWarning (Exception e) { throw new NotImplementedException (); }
144 namespace System.ServiceModel.Dispatcher
146 public sealed class EndpointDispatcher
148 internal EndpointDispatcher ()
153 internal class FaultFormatter : IClientFaultFormatter
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 (); }
163 internal interface IClientFaultFormatter
165 FaultException Deserialize (MessageFault messageFault, string action);
168 namespace System.ServiceModel.Security
173 namespace System.Net.Security
175 public enum ProtectionLevel {None}
177 namespace System.Xml.Serialization
179 public class XmlTypeMapping {}
181 namespace System.Xml.XPath
185 namespace Mono.Xml.XPath