public void ApplyDispatchBehavior(OperationDescription operationDescription, DispatchOperation dispatchOperation) { IOperationBehavior innerBehavior = new ReferencePreservingDataContractSerializerOperationBehavior(operationDescription); innerBehavior.ApplyDispatchBehavior(operationDescription, dispatchOperation); }
public void ApplyClientBehavior(OperationDescription operationDescription, ClientOperation clientOperation) { IOperationBehavior innerBehavior = new ReferencePreservingDataContractSerializerOperationBehavior(operationDescription); innerBehavior.ApplyClientBehavior(operationDescription, clientOperation); }