Elmah.ErrorLogPageFactory.IsAuthorized C# (CSharp) Méthode

IsAuthorized() private static méthode

Determines if the request is authorized by objects implementing IRequestAuthorizationHandler.
private static IsAuthorized ( System.Web.HttpContextBase context ) : bool?
context System.Web.HttpContextBase
Résultat bool?
        private static bool? IsAuthorized(HttpContextBase context)
        {
            Debug.Assert(context != null);

            var handlers = GetAuthorizationHandlers(context).ToArray();
            return handlers.Length != 0
                 ? handlers.All(h => h.Authorize(context))
                 : (bool?) null;
        }