2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.ServiceModel / Dummy_2_1.cs
blob4c90120ed87cf2259e6012161a40487f3bf5b491
1 using System.Reflection;
2 using System.Runtime.Serialization;
4 namespace System.ServiceModel
6 public class EndpointIdentity {}
7 public class InstanceContext
9 public InstanceContext (object dummy) {}
11 // introduced for silverlight sdk compatibility
12 internal class OperationFormatStyleHelper
14 public static bool IsDefined (OperationFormatStyle style)
16 switch (style) {
17 case OperationFormatStyle.Document:
18 case OperationFormatStyle.Rpc:
19 return true;
21 return false;
25 namespace System.ServiceModel.Channels
27 public interface ITransportTokenAssertionProvider {}
29 namespace System.ServiceModel.Configuration
31 class Dummy {}
33 namespace System.ServiceModel.Description
35 public interface IPolicyExportExtension {}
36 public interface IPolicyImportExtension {}
37 public interface IWsdlExportExtension {}
38 public interface IWsdlImportExtension {}
39 public interface IContractBehavior {}
41 // introduced for silverlight sdk compatibility
42 internal class ServiceReflector
44 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
46 T ret = default (T);
47 foreach (Type t in types) {
48 foreach (object att in p.GetCustomAttributes (t, false)) {
49 if (att is T) {
50 if (ret != null)
51 throw new InvalidOperationException (String.Format ("More than one {0} attributes are found in the argument types", typeof (T)));
52 ret = (T) att;
56 return ret;
60 namespace System.ServiceModel.DiagnosticUtility
62 // introduced for silverlight sdk compatibility
63 internal class ExceptionUtility
65 public static Exception ThrowHelperError (Exception error)
67 return error;
70 public static Exception ThrowHelperArgumentNull (string arg)
72 return new ArgumentNullException (arg);
76 namespace System.ServiceModel.Dispatcher
79 namespace System.ServiceModel.Security
81 class Dummy {}
83 namespace System.Net.Security
85 public enum ProtectionLevel {None}
87 namespace System.Xml.Serialization
89 public class XmlTypeMapping {}
91 namespace System.Xml.XPath
93 class Dummy {}
95 namespace Mono.Xml.XPath
97 class Dummy {}