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;
10 using System.Threading;
12 namespace System.Runtime.CompilerServices
14 // introduced for silverlight sdk compatibility
15 internal class FriendAccessAllowedAttribute : Attribute
17 public FriendAccessAllowedAttribute ()
23 namespace System.ServiceModel
25 public class EndpointIdentity {}
26 public class InstanceContext : CommunicationObject, IExtensibleObject<InstanceContext>
28 protected internal override TimeSpan DefaultCloseTimeout
30 get { throw new NotImplementedException (); }
33 protected internal override TimeSpan DefaultOpenTimeout
35 get { throw new NotImplementedException (); }
38 public IExtensionCollection<InstanceContext> Extensions
40 get { throw new NotImplementedException (); }
43 public SynchronizationContext SynchronizationContext {
44 get { throw new NotImplementedException (); }
45 set { throw new NotImplementedException (); }
48 public InstanceContext (object implementation)
52 public object GetServiceInstance (Message message)
54 throw new NotImplementedException ();
57 protected override void OnAbort ()
59 throw new NotImplementedException ();
62 protected override IAsyncResult OnBeginClose (TimeSpan timeout, AsyncCallback callback, object state)
64 throw new NotImplementedException ();
67 protected override IAsyncResult OnBeginOpen (TimeSpan timeout, AsyncCallback callback, object state)
69 throw new NotImplementedException ();
72 protected override void OnClose (TimeSpan timeout)
74 throw new NotImplementedException ();
77 protected override void OnClosed ()
79 throw new NotImplementedException ();
82 protected override void OnEndClose (IAsyncResult result)
84 throw new NotImplementedException ();
87 protected override void OnEndOpen (IAsyncResult result)
89 throw new NotImplementedException ();
92 protected override void OnFaulted ()
94 throw new NotImplementedException ();
97 protected override void OnOpen (TimeSpan timeout)
99 throw new NotImplementedException ();
102 protected override void OnOpened ()
104 throw new NotImplementedException ();
107 protected override void OnOpening ()
109 throw new NotImplementedException ();
112 // introduced for silverlight sdk compatibility
113 internal class OperationFormatStyleHelper
115 public static bool IsDefined (OperationFormatStyle style)
118 case OperationFormatStyle.Document:
119 case OperationFormatStyle.Rpc:
126 [FriendAccessAllowed]
127 internal interface IDispatchOperation
129 bool DeserializeRequest { get; set; }
130 IDispatchMessageFormatter Formatter { get; set; }
132 bool SerializeReply { get; set; }
135 namespace System.ServiceModel.Channels
137 public interface ITransportTokenAssertionProvider {}
138 public static class UrlUtility {
139 public static string UrlEncode (string s, Encoding e)
144 public static string UrlDecode (string s, Encoding e)
150 namespace System.ServiceModel.Channels.Http
153 namespace System.ServiceModel.Channels.Security
156 namespace System.ServiceModel.Configuration
160 namespace System.ServiceModel.Description
162 public interface IPolicyExportExtension {}
163 public interface IPolicyImportExtension {}
164 public interface IWsdlExportExtension {}
165 public interface IWsdlImportExtension {}
167 // introduced for silverlight sdk compatibility
168 internal class ServiceReflector
170 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
173 foreach (Type t in types) {
174 foreach (object att in p.GetCustomAttributes (t, false)) {
177 throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
186 namespace System.ServiceModel
188 // introduced for silverlight sdk compatibility
189 internal interface IDuplexHelper { }
191 [FriendAccessAllowed ()]
192 internal class DiagnosticUtility
194 [FriendAccessAllowed ()]
195 internal class ExceptionUtility
197 public static Exception ThrowHelperArgument (string message) { throw new NotImplementedException (); }
199 public static Exception ThrowHelperArgument (string paramName, string message) { throw new NotImplementedException (); }
201 public static Exception ThrowHelperArgumentNull (string arg)
203 return new ArgumentNullException (arg);
206 [FriendAccessAllowed]
207 internal static Exception ThrowHelperCallback (Exception e) { throw new NotImplementedException (); }
209 [FriendAccessAllowed]
210 internal static Exception ThrowHelperCallback (string message, Exception innerException) { throw new NotImplementedException (); }
212 public static Exception ThrowHelperError (Exception error)
217 [FriendAccessAllowed]
218 internal static Exception ThrowHelperFatal (string message, Exception innerException) { throw new NotImplementedException (); }
220 [FriendAccessAllowed]
221 internal static Exception ThrowHelperInternal (bool fatal) { throw new NotImplementedException (); }
223 public static Exception ThrowHelperWarning (Exception e) { throw new NotImplementedException (); }
228 namespace System.ServiceModel.Dispatcher
230 public sealed class EndpointDispatcher
232 internal EndpointDispatcher ()
237 internal class FaultFormatter : IClientFaultFormatter
239 internal FaultFormatter (Type[] detailTypes) { throw new NotImplementedException (); }
240 internal FaultFormatter (SynchronizedCollection<FaultContractInfo> faultContractInfoCollection) { throw new NotImplementedException (); }
241 protected virtual FaultException CreateFaultException (MessageFault messageFault, string action) { throw new NotImplementedException (); }
242 protected FaultException CreateFaultException (MessageFault messageFault, string action, object detailObj, Type detailType, XmlDictionaryReader detailReader) { throw new NotImplementedException (); }
243 public FaultException Deserialize (MessageFault messageFault, string action) { throw new NotImplementedException (); }
244 protected virtual XmlObjectSerializer GetSerializer (Type detailType, string faultExceptionAction, out string action) { throw new NotImplementedException (); }
247 internal interface IClientFaultFormatter
249 FaultException Deserialize (MessageFault messageFault, string action);
252 namespace System.ServiceModel.Security
257 namespace System.Net.Security
259 public enum ProtectionLevel {None}
261 namespace System.Xml.Serialization
263 public class XmlTypeMapping {}
265 namespace System.Xml.XPath
269 namespace Mono.Xml.XPath