WcfClientProxyGenerator
WcfClientProxyGenerator copied to clipboard
How to set OutgoingMessageProperties
I am trying to replace a custom WcfClientProxy with WcfClientProxyGenerator and I am not sure how to handle adding outgoing message properties.
Current implementation looks something like this.
using (new OperationContextScope(proxy)) { // Adding HTTP header OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = AuthorizationHeaderFactory.Create();
How can this be accomplised with WcfClientProxyGenerator? If not supported, do you have a suggestion on how to extend it to support it?