Exemplo n.º 1
0
 protected void AuthorizeIfNecessary()
 {
     if (!S3Authorizer.IsAuthorized(WebRequest))
     {
         Authorize();
     }
 }
Exemplo n.º 2
0
        protected virtual void Authorize()
        {
            if (S3Authorizer.IsAuthorized(WebRequest))
            {
                throw new InvalidOperationException("This request has already been authorized.");
            }

            Service.AuthorizeRequest(this, WebRequest, bucketName);
        }