c# Programming Glossary: myprincipal
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 Task GetAsync await AuthenticateAsync false if User is MyPrincipal throw new System.Exception User is incorrect type. private.. Why is this required await Task.Yield var principal new MyPrincipal System.Web.HttpContext.Current.User principal System.Threading.Thread.CurrentPrincipal.. System.Threading.Thread.CurrentPrincipal principal class MyPrincipal GenericPrincipal public MyPrincipal base new GenericIdentity..
Is this Custom Principal in Base Controller ASP.NET MVC 3 terribly inefficient? http://stackoverflow.com/questions/8263845/is-this-custom-principal-in-base-controller-asp-net-mvc-3-terribly-inefficient So I created a custom principal like this public class MyPrincipal IPrincipal public MyPrincipal IIdentity ident List string roles.. like this public class MyPrincipal IPrincipal public MyPrincipal IIdentity ident List string roles string email Guid userId .. class BaseController Controller protected virtual new MyPrincipal User get if base.User is MyPrincipal return base.User as..
|