Add #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy.
authorAtsushi Eno <atsushi@ximian.com>
Thu, 21 Oct 2010 06:30:23 +0000 (15:30 +0900)
committerAtsushi Eno <atsushi@ximian.com>
Thu, 21 Oct 2010 06:30:23 +0000 (15:30 +0900)
mcs/class/System.ServiceModel/System.ServiceModel.Description/XmlSerializerOperationBehavior.cs
mcs/class/System.ServiceModel/System.ServiceModel/XmlSerializerFormatAttribute.cs

index 5b5361f9193fb2d60c17f8928d52f69692e44e2e..dd81938dd6924f6810886f5a9aec1984808095c0 100644 (file)
@@ -35,7 +35,10 @@ using System.Xml.Serialization;
 namespace System.ServiceModel.Description
 {
        public class XmlSerializerOperationBehavior
-               : IOperationBehavior, IWsdlExportExtension
+               : IOperationBehavior
+#if !NET_2_1
+                       , IWsdlExportExtension
+#endif
        {
                XmlSerializerFormatAttribute format;
                OperationDescription operation;
@@ -72,13 +75,15 @@ namespace System.ServiceModel.Description
                {
                        throw new NotImplementedException ();
                }
-
+               
+#if !NET_2_1
                void IOperationBehavior.ApplyDispatchBehavior (
                        OperationDescription description,
                        DispatchOperation dispatch)
                {
                        throw new NotImplementedException ();
                }
+#endif
 
                void IOperationBehavior.ApplyClientBehavior (
                        OperationDescription description,
@@ -93,6 +98,7 @@ namespace System.ServiceModel.Description
                        throw new NotImplementedException ();
                }
 
+#if !NET_2_1
                void IWsdlExportExtension.ExportContract (
                        WsdlExporter exporter,
                        WsdlContractConversionContext context)
@@ -105,5 +111,6 @@ namespace System.ServiceModel.Description
                {
                        throw new NotImplementedException ();
                }
+#endif
        }
 }
index 35c781f1fa7cfdeb8c9cc5677d445db28cdf0cf3..05acd4e5ebc7c8e3cc52fa06eed48d44b5924582 100644 (file)
@@ -33,17 +33,11 @@ namespace System.ServiceModel
                AttributeTargets.Method, Inherited = false)]
        public sealed class XmlSerializerFormatAttribute : Attribute
        {
-               OperationFormatStyle style;
-               OperationFormatUse use;
+               public OperationFormatStyle Style { get; set; }
 
-               public OperationFormatStyle Style {
-                       get { return style; }
-                       set { style = value; }
-               }
-
-               public OperationFormatUse Use {
-                       get { return use; }
-                       set { use = value; }
-               }
+               public OperationFormatUse Use { get; set; }
+               
+               [MonoTODO]
+               public bool SupportFaults { get; set; }
        }
 }