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

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