Esempio n. 1
0
            public async Task <HttpResponseMessage> Handle(CaptchaCommand request, CancellationToken cancellationToken)
            {
                var response = _captcha.GetAsync(request.Token);

                if (response.Result.IsSuccessStatusCode)//FIX ME After sent a bearer token, it should not pass into it but it do, so check by another way
                {
                    return(await response);
                }
                else
                {
                    throw new ApplicationException();
                }
            }