WCF Parallel Impersonation
问题 I have a WCF service with "ImpersonationOption.Required". The impersonation does not seem to flow through when using parallelism. For example: Parallel.ForEach(items => results.Add(SystemUtil.WindowsUser.Name) Will return a number with the impersonated user, and a number with the app pool user. Can impersonation be made to work with parallelism? Best, Marc Update: This is actual code on the IIS Service side. [OperationBehavior(Impersonation = ImpersonationOption.Required)] public string[]