예제 #1
0
 /// <remarks/>
 public void PutObjectInlineAsync(string Bucket, string Key, MetadataEntry[] Metadata, byte[] Data, long ContentLength, Grant[] AccessControlList, StorageClass StorageClass, bool StorageClassSpecified, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential) {
     this.PutObjectInlineAsync(Bucket, Key, Metadata, Data, ContentLength, AccessControlList, StorageClass, StorageClassSpecified, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, Credential, null);
 }
예제 #2
0
 /// <remarks/>
 public void PutObjectInlineAsync(string Bucket, string Key, MetadataEntry[] Metadata, byte[] Data, long ContentLength, Grant[] AccessControlList, StorageClass StorageClass, bool StorageClassSpecified, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential, object userState) {
     if ((this.PutObjectInlineOperationCompleted == null)) {
         this.PutObjectInlineOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPutObjectInlineOperationCompleted);
     }
     this.InvokeAsync("PutObjectInline", new object[] {
                 Bucket,
                 Key,
                 Metadata,
                 Data,
                 ContentLength,
                 AccessControlList,
                 StorageClass,
                 StorageClassSpecified,
                 AWSAccessKeyId,
                 Timestamp,
                 TimestampSpecified,
                 Signature,
                 Credential}, this.PutObjectInlineOperationCompleted, userState);
 }
예제 #3
0
 /// <remarks/>
 public void SetBucketAccessControlPolicyAsync(string Bucket, Grant[] AccessControlList, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential, object userState) {
     if ((this.SetBucketAccessControlPolicyOperationCompleted == null)) {
         this.SetBucketAccessControlPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetBucketAccessControlPolicyOperationCompleted);
     }
     this.InvokeAsync("SetBucketAccessControlPolicy", new object[] {
                 Bucket,
                 AccessControlList,
                 AWSAccessKeyId,
                 Timestamp,
                 TimestampSpecified,
                 Signature,
                 Credential}, this.SetBucketAccessControlPolicyOperationCompleted, userState);
 }
예제 #4
0
 /// <remarks/>
 public void SetBucketAccessControlPolicyAsync(string Bucket, Grant[] AccessControlList, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature, string Credential) {
     this.SetBucketAccessControlPolicyAsync(Bucket, AccessControlList, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, Credential, null);
 }
예제 #5
0
 /// <remarks/>
 public void CreateBucketAsync(string Bucket, Grant[] AccessControlList, string AWSAccessKeyId, System.DateTime Timestamp, bool TimestampSpecified, string Signature) {
     this.CreateBucketAsync(Bucket, AccessControlList, AWSAccessKeyId, Timestamp, TimestampSpecified, Signature, null);
 }
예제 #6
0
            public SoapRequestStream(AmazonS3 service, string bucket, string key, MetadataEntry[] meta2, Grant[] acl2, string accessKeyId, DateTime time, string sig, string cred)
            {
                _service     = service;
                _bucket      = bucket;
                _key         = key;
                _meta2       = meta2;
                _acl2        = acl2;
                _accessKeyId = accessKeyId;
                _time        = time;
                _sig         = sig;
                _cred        = cred;

                _stm = new MemoryStream();
            }
예제 #7
0
 // ***
 private Grant[] ConvertGrant(AWSGrant acl)
 {
     Grant[] ret;
     switch(acl) {
         case AWSGrant.PrivateOnly:
             ret = null;
             break;
         case AWSGrant.PublicRead: {
             Group gra = new Group();
             gra.URI = "http://acs.amazonaws.com/groups/global/AllUsers";
             ret = new Grant[1];
             ret[0] = new Grant();
             ret[0].Grantee    = gra;
             ret[0].Permission = Permission.READ;
         }   break;
         case AWSGrant.PublicWrite: {
             Group gra = new Group();
             gra.URI = "http://acs.amazonaws.com/groups/global/AllUsers";
             ret = new Grant[1];
             ret[0] = new Grant();
             ret[0].Grantee    = gra;
             ret[0].Permission = Permission.WRITE;
         }   break;
         default:
             throw new ArgumentException();
     }
     return ret;
 }