I want to transfer the credentials of my application pool identification account to the WCF service using the application, I can get the credentials for the application pool identifier using
var identitipoolAccountCred = System.Security.Principal.WindowsIdentity.GetCurrent();
and I want to convert these credentials ( System.Security.principal.WindowsIdentity) to enter the type of network identity ( System.Net.NetworkCredential) in order to transmit the factory WCF channel.
So how to convert Windows ids to network credentials in C #?
source
share