/// <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); }
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(); }
/// <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); }
private MetadataEntry[] ConvertMetadata(AWSMetadataEntry[] meta) { if(meta != null) { MetadataEntry[] ret = new MetadataEntry[meta.Length]; for(int idx = 0; idx < meta.Length; idx++) { string mkey = meta[idx].MetaKey; string mval = meta[idx].MetaValue; if(mkey.ToLower() != "content-type") { mkey = mkey.ToLower(); } else { mkey = "Content-Type"; } ret[idx] = new MetadataEntry(); ret[idx].Name = mkey; ret[idx].Value = mval; } return ret; } else { return null; } }