namespace System.ServiceModel.Description
{
public class XmlSerializerOperationBehavior
- : IOperationBehavior, IWsdlExportExtension
+ : IOperationBehavior
+#if !NET_2_1
+ , IWsdlExportExtension
+#endif
{
XmlSerializerFormatAttribute format;
OperationDescription operation;
{
throw new NotImplementedException ();
}
-
+
+#if !NET_2_1
void IOperationBehavior.ApplyDispatchBehavior (
OperationDescription description,
DispatchOperation dispatch)
{
throw new NotImplementedException ();
}
+#endif
void IOperationBehavior.ApplyClientBehavior (
OperationDescription description,
throw new NotImplementedException ();
}
+#if !NET_2_1
void IWsdlExportExtension.ExportContract (
WsdlExporter exporter,
WsdlContractConversionContext context)
{
throw new NotImplementedException ();
}
+#endif
}
}
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; }
}
}