Example #1
0
        internal async Task <bool> DoAuthenticate(WebContext wc)
        {
            if (Authenticate != null)
            {
                if (Authenticate.IsAsync && !await Authenticate.DoAsync(wc) || !Authenticate.IsAsync && !Authenticate.Do(wc))
                {
                    return(false);
                }
            }

            return(true);
        }