Wcf 如何在C#中将windows标识转换为网络凭据?

Wcf 如何在C#中将windows标识转换为网络凭据?,wcf,wcf-security,Wcf,Wcf Security,我想将我的应用程序池标识帐户的凭据传递到应用程序中的WCF服务,我可以使用获取应用程序池标识的凭据 var identitipoolAccountCred = System.Security.Principal.WindowsIdentity.GetCurrent(); 我想将这些凭据(System.Security.principal.WindowsIdentity)转换为类型网络凭据类型(System.Net.NetworkCredential),以通过WCF通道工厂 因此,如何在C#?中

我想将我的应用程序池标识帐户的凭据传递到应用程序中的WCF服务,我可以使用获取应用程序池标识的凭据

var identitipoolAccountCred = System.Security.Principal.WindowsIdentity.GetCurrent();
我想将这些凭据(
System.Security.principal.WindowsIdentity
)转换为类型网络凭据类型(
System.Net.NetworkCredential
),以通过WCF通道工厂

因此,如何在C#?

中将windows标识转换为网络凭据这可能会对您有所帮助。