The base class for all S3 requests.
示例#1
0
        internal void AuthorizeRequest(S3Request request, HttpWebRequest webRequest, string bucketName)
        {
            if (BeforeAuthorize != null)
            {
                BeforeAuthorize(this, new S3RequestArgs(request));
            }

            // if you haven't set a secret access key, we can't authorize anything! maybe
            // you're talking to a mock S3 server. At any rate, the server will complain
            // if it expects the authorization.
            if (authorizer != null)
            {
                authorizer.AuthorizeRequest(webRequest, bucketName);
            }
        }
示例#2
0
        internal void AuthorizeRequest(S3Request request, HttpWebRequest webRequest, string bucketName)
        {
            if (BeforeAuthorize != null)
                BeforeAuthorize(this, new S3RequestArgs(request));

            // if you haven't set a secret access key, we can't authorize anything! maybe
            // you're talking to a mock S3 server. At any rate, the server will complain
            // if it expects the authorization.
            if (authorizer != null)
                authorizer.AuthorizeRequest(webRequest, bucketName);
        }
示例#3
0
 public S3RequestArgs(S3Request request)
 {
     this.Request = request;
 }
示例#4
0
 public S3RequestArgs(S3Request request)
 {
     this.Request = request;
 }