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;
11 namespace System.Runtime.CompilerServices
13 // introduced for silverlight sdk compatibility
14 internal class FriendAccessAllowedAttribute : Attribute
16 public FriendAccessAllowedAttribute ()
23 namespace System.ServiceModel
25 public class EndpointIdentity {}
26 public class InstanceContext
28 public InstanceContext (object dummy) {}
30 // introduced for silverlight sdk compatibility
31 internal class OperationFormatStyleHelper
33 public static bool IsDefined (OperationFormatStyle style)
36 case OperationFormatStyle.Document:
37 case OperationFormatStyle.Rpc:
45 internal interface IDispatchOperation
47 bool DeserializeRequest { get; set; }
48 IDispatchMessageFormatter Formatter { get; set; }
50 bool SerializeReply { get; set; }
53 namespace System.ServiceModel.Channels
55 public interface ITransportTokenAssertionProvider {}
56 public static class UrlUtility {
57 public static string UrlEncode (string s, Encoding e)
62 public static string UrlDecode (string s, Encoding e)
68 namespace System.ServiceModel.Channels.Http
71 namespace System.ServiceModel.Channels.Security
74 namespace System.ServiceModel.Configuration
78 namespace System.ServiceModel.Description
80 public interface IPolicyExportExtension {}
81 public interface IPolicyImportExtension {}
82 public interface IWsdlExportExtension {}
83 public interface IWsdlImportExtension {}
85 // introduced for silverlight sdk compatibility
86 internal class ServiceReflector
88 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
91 foreach (Type t in types) {
92 foreach (object att in p.GetCustomAttributes (t, false)) {
95 throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
104 namespace System.ServiceModel
106 // introduced for silverlight sdk compatibility
107 internal interface IDuplexHelper { }
109 [FriendAccessAllowed ()]
110 internal class DiagnosticUtility
112 [FriendAccessAllowed ()]
113 internal class ExceptionUtility
115 public static Exception ThrowHelperArgument (string message) { throw new NotImplementedException (); }
117 public static Exception ThrowHelperArgument (string paramName, string message) { throw new NotImplementedException (); }
119 public static Exception ThrowHelperArgumentNull (string arg)
121 return new ArgumentNullException (arg);
124 [FriendAccessAllowed]
125 internal static Exception ThrowHelperCallback (Exception e) { throw new NotImplementedException (); }
127 [FriendAccessAllowed]
128 internal static Exception ThrowHelperCallback (string message, Exception innerException) { throw new NotImplementedException (); }
130 public static Exception ThrowHelperError (Exception error)
135 [FriendAccessAllowed]
136 internal static Exception ThrowHelperFatal (string message, Exception innerException) { throw new NotImplementedException (); }
138 [FriendAccessAllowed]
139 internal static Exception ThrowHelperInternal (bool fatal) { throw new NotImplementedException (); }
141 public static Exception ThrowHelperWarning (Exception e) { throw new NotImplementedException (); }
146 namespace System.ServiceModel.Dispatcher
148 public sealed class EndpointDispatcher
150 internal EndpointDispatcher ()
155 internal class FaultFormatter : IClientFaultFormatter
157 internal FaultFormatter (Type[] detailTypes) { throw new NotImplementedException (); }
158 internal FaultFormatter (SynchronizedCollection<FaultContractInfo> faultContractInfoCollection) { throw new NotImplementedException (); }
159 protected virtual FaultException CreateFaultException (MessageFault messageFault, string action) { throw new NotImplementedException (); }
160 protected FaultException CreateFaultException (MessageFault messageFault, string action, object detailObj, Type detailType, XmlDictionaryReader detailReader) { throw new NotImplementedException (); }
161 public FaultException Deserialize (MessageFault messageFault, string action) { throw new NotImplementedException (); }
162 protected virtual XmlObjectSerializer GetSerializer (Type detailType, string faultExceptionAction, out string action) { throw new NotImplementedException (); }
165 internal interface IClientFaultFormatter
167 FaultException Deserialize (MessageFault messageFault, string action);
170 namespace System.ServiceModel.Security
175 namespace System.Net.Security
177 public enum ProtectionLevel {None}
179 namespace System.Xml.Serialization
181 public class XmlTypeMapping {}
183 namespace System.Xml.XPath
187 namespace Mono.Xml.XPath