BinaryStudio.ClientManager.WebUi.MvcApplication.Application_AuthenticateRequest C# (CSharp) Метод

Application_AuthenticateRequest() защищенный Метод

protected Application_AuthenticateRequest ( Object sender, EventArgs e ) : void
sender Object
e System.EventArgs
Результат void
        protected void Application_AuthenticateRequest(Object sender, EventArgs e)
        {
            var currentUser = DependencyResolver.Current.GetService<IAppContext>().User;
            HttpContext.Current.User =
                currentUser == null ? null : new GenericPrincipal(new GenericIdentity(currentUser.RelatedPerson.Email), null);
        }