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