我希望你能帮助我。
我正在我的 C# 4.0 应用程序中执行一些需要身份验证的 webrequest。我只是使用CredentialsCache.DefaultCredentials. 只要我不通过Task<T>.Factory.StartNew(...). 然后我收到 401 错误。我假设凭据没有传递给子线程?
CredentialsCache.DefaultCredentials
Task<T>.Factory.StartNew(...)
如何将凭据传递给任何子任务/线程?
.net c# authentication task-parallel-library credentialscache
.net ×1
authentication ×1
c# ×1
credentialscache ×1
task-parallel-library ×1