
Behaviour eklemek:

public class CustomBehaviour : IEndpointBehavior
{
public void Validate(ServiceEndpoint endpoint)
{

public class CustomBehaviour : IEndpointBehavior
{
public void Validate(ServiceEndpoint endpoint)
{
}
public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
{
bindingParameters:

endpoint:

public class CustomBehaviour : IEndpointBehavior
{
public void Validate(ServiceEndpoint endpoint)
{
}
public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
{
}
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
{
CustomBehaviour custom = ((CustomBehaviour)(endpoint.Behaviors[typeof(CustomBehaviour)]));
MessageInspector mi = new MessageInspector()
{
M_Key = custom.M_Key,
M_Value = custom.M_Value
};
clientRuntime.MessageInspectors.Add(mi);
}
clientRuntime: