I\'m having a problem invoking WCF services in parallel. I\'m trying to use Tasks to invoke two services in parallel to save some time (I\'m NOT trying to make this async),
Try this:
WindowsIdentity impersonatedUser = WindowsIdentity.GetCurrent(); Task.Factory.StartNew(() => { using (WindowsImpersonationContext ctx = impersonatedUser.Impersonate()) { //Your code } return data; });