protected void AuthorizeIfNecessary() { if (!S3Authorizer.IsAuthorized(WebRequest)) { Authorize(); } }
protected virtual void Authorize() { if (S3Authorizer.IsAuthorized(WebRequest)) { throw new InvalidOperationException("This request has already been authorized."); } Service.AuthorizeRequest(this, WebRequest, bucketName); }