¡@

Home 

c# Programming Glossary: authenticateasync

Why is an “await Task.Yield()” required for Thread.CurrentPrincipal to flow correctly?

http://stackoverflow.com/questions/16653308/why-is-an-await-task-yield-required-for-thread-currentprincipal-to-flow-corr

or anything else asynchronous is executed passing true to AuthenticateAsync will result in success . Why is that using System.Security.Principal.. ApiController public async Task GetAsync await AuthenticateAsync false if User is MyPrincipal throw new System.Exception User.. User is incorrect type. private static async Task AuthenticateAsync bool yield if yield Why is this required await Task.Yield..