Procházet zdrojové kódy

Add #if NET_2_1 and SupportFaults member for Silverlight SlSvcUtil proxy.

Atsushi Eno před 15 roky
rodič
revize
184e1e67e5

+ 9 - 2
mcs/class/System.ServiceModel/System.ServiceModel.Description/XmlSerializerOperationBehavior.cs

@@ -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
 	}
 }

+ 5 - 11
mcs/class/System.ServiceModel/System.ServiceModel/XmlSerializerFormatAttribute.cs

@@ -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; }
 	}
 }