New tests.
[mono.git] / mcs / class / System.ServiceModel / Dummy_2_1.cs
1 using System.Reflection;
2 using System.Runtime.Serialization;
3
4 namespace System.ServiceModel
5 {
6         public class EndpointIdentity {}
7         public class InstanceContext
8         {
9                 public InstanceContext (object dummy) {}
10         }
11         // introduced for silverlight sdk compatibility
12         internal class OperationFormatStyleHelper
13         {
14                 public static bool IsDefined (OperationFormatStyle style)
15                 {
16                         switch (style) {
17                         case OperationFormatStyle.Document:
18                         case OperationFormatStyle.Rpc:
19                                 return true;
20                         }
21                         return false;
22                 }
23         }
24 }
25 namespace System.ServiceModel.Channels
26 {
27         public interface ITransportTokenAssertionProvider {}
28 }
29 namespace System.ServiceModel.Configuration
30 {
31         class Dummy {}
32 }
33 namespace System.ServiceModel.Description
34 {
35         public interface IPolicyExportExtension {}
36         public interface IPolicyImportExtension {}
37         public interface IWsdlExportExtension {}
38         public interface IWsdlImportExtension {}
39         public interface IContractBehavior {}
40
41         // introduced for silverlight sdk compatibility
42         internal class ServiceReflector
43         {
44                 public static T GetSingleAttribute<T> (ICustomAttributeProvider p, Type [] types)
45                 {
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;
53                                         }
54                                 }
55                         }
56                         return ret;
57                 }
58         }
59 }
60 namespace System.ServiceModel.DiagnosticUtility
61 {
62         // introduced for silverlight sdk compatibility
63         internal class ExceptionUtility
64         {
65                 public static Exception ThrowHelperError (Exception error)
66                 {
67                         return error;
68                 }
69
70                 public static Exception ThrowHelperArgumentNull (string arg)
71                 {
72                         return new ArgumentNullException (arg);
73                 }
74         }
75 }
76 namespace System.ServiceModel.Dispatcher
77 {
78 }
79 namespace System.ServiceModel.Security
80 {
81         class Dummy {}
82 }
83 namespace System.Net.Security
84 {
85         public enum ProtectionLevel {None}
86 }
87 namespace System.Xml.Serialization
88 {
89         public class XmlTypeMapping {}
90 }
91 namespace System.Xml.XPath
92 {
93         class Dummy {}
94 }
95 namespace Mono.Xml.XPath
96 {
97         class Dummy {}
98 }
99