|
|
@@ -53,6 +53,8 @@ namespace System.ServiceModel.Description
|
|
|
OperationDescription operation,
|
|
|
XmlSerializerFormatAttribute format)
|
|
|
{
|
|
|
+ if (operation == null)
|
|
|
+ throw new ArgumentNullException ("operation");
|
|
|
if (format == null)
|
|
|
format = new XmlSerializerFormatAttribute ();
|
|
|
this.format = format;
|
|
|
@@ -73,27 +75,33 @@ namespace System.ServiceModel.Description
|
|
|
OperationDescription description,
|
|
|
BindingParameterCollection parameters)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
}
|
|
|
|
|
|
void IOperationBehavior.ApplyDispatchBehavior (
|
|
|
OperationDescription description,
|
|
|
DispatchOperation dispatch)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (description == null)
|
|
|
+ throw new ArgumentNullException ("description");
|
|
|
+ if (dispatch == null)
|
|
|
+ throw new ArgumentNullException ("dispatch");
|
|
|
+ dispatch.Formatter = new XmlMessagesFormatter (description, format);
|
|
|
}
|
|
|
|
|
|
void IOperationBehavior.ApplyClientBehavior (
|
|
|
OperationDescription description,
|
|
|
ClientOperation proxy)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
+ if (description == null)
|
|
|
+ throw new ArgumentNullException ("description");
|
|
|
+ if (proxy == null)
|
|
|
+ throw new ArgumentNullException ("proxy");
|
|
|
+ proxy.Formatter = new XmlMessagesFormatter (description, format);
|
|
|
}
|
|
|
|
|
|
void IOperationBehavior.Validate (
|
|
|
OperationDescription description)
|
|
|
{
|
|
|
- throw new NotImplementedException ();
|
|
|
}
|
|
|
|
|
|
#if !NET_2_1
|