Ejemplo n.º 1
0
 public static AmazonS3Object ToAmazonS3Object(this GetObjectResponse response)
 {
     var amazonS3Object = new AmazonS3Object();
     amazonS3Object.Name = response.Key;
     amazonS3Object.Id = response.AmazonId2;
     amazonS3Object.Length = response.ContentLength;
     return amazonS3Object;
 }
Ejemplo n.º 2
0
 public static AmazonS3Object ToAmazonS3Object(this S3Object response)
 {
     var amazonS3Object = new AmazonS3Object();
     amazonS3Object.Name = response.Key;
     amazonS3Object.Modified = Convert.ToDateTime(response.LastModified);
     amazonS3Object.Length = response.Size;
     return amazonS3Object;
 }
Ejemplo n.º 3
0
        public AmazonS3File(UnifiedDirectory directory, VirtualPathUnifiedProvider provider, string virtualPath, bool bypassAccessCheck, AmazonS3Object file)
            : base(directory, provider, virtualPath, bypassAccessCheck)
        {
            this._amazon = new AmazonS3Repository(((AmazonS3VirtualPathProvider)this.Provider).AwsAccessKey, ((AmazonS3VirtualPathProvider)this.Provider).AwsSecretKey, ((AmazonS3VirtualPathProvider)this.Provider).BucketName);
            this._summary = new AmazonS3Summary();
            this._virtualPath = virtualPath;

            if (file != null)
            {
                this._file = file;
            }
        }