WebOperationContext support in WCF .NET Core


#1

Hi

I have the following questions in the context of WCF in .NET Core

  1. We are sending the authentication headers in the WCF call using the WebOperationContext.
    WebOperationContext.Current.OutgoingRequest.Headers[HttpRequestHeader.Authorization] = token

What is the alternative in the context of .Net core ?

  1. We want to disable the ssl certificate validation during testing phase. For that we used to register for ServicePointManager.ServerCertificateValidationCallback += this.certValidationCallback;
    What is the alternative in the context of Wcf .Net core ? Not sure whether WinHttpHandler would work in the context of WCF ?

Thanks

Venkatesh


.NET Foundation Website | Blog | Projects | Code of Conduct