예제 #1
0
파일: WebWork.cs 프로젝트: skyiah/skychain
        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);
        }