Last active
June 23, 2018 15:10
-
-
Save skenderbeu/66a9bd86cc339cf022ea59f342bbfbee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ServiceModel.Description; | |
using System.ServiceModel.Dispatcher; | |
using System.ServiceModel.Channels; | |
namespace RoyalMail | |
{ | |
public class RoyalMailOperationBehavior : IOperationBehavior | |
{ | |
public RoyalMailOperationBehavior() { } | |
public void ApplyClientBehavior(OperationDescription description, ClientOperation proxy) | |
{ | |
IClientMessageFormatter currentFormatter = proxy.Formatter; | |
proxy.Formatter = new RoyalMailMessageFormatter(currentFormatter); | |
} | |
public void AddBindingParameters(OperationDescription operationDescription, BindingParameterCollection bindingParameters) {} | |
public void ApplyDispatchBehavior(OperationDescription operationDescription, DispatchOperation dispatchOperation) {} | |
public void Validate(OperationDescription operationDescription){} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment