WcfClientProxyGenerator icon indicating copy to clipboard operation
WcfClientProxyGenerator copied to clipboard

How to set OutgoingMessageProperties

Open krileo opened this issue 5 years ago • 0 comments

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?

krileo avatar Mar 03 '20 06:03 krileo