Exemple #1
0
        public static Contents BuildDs3Object(string key, string eTag, string lastModified, long size)
        {
            User owner = new User();
            owner.DisplayName = "*****@*****.**";
            owner.Id = Guid.Parse("75aa57f0-9aa0-c8ca-eab4-f8c24e99d10f"); //"75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a"

            Contents contents = new Contents();
            contents.Key = key;
            contents.Size = size;
            contents.Owner = owner;
            contents.ETag = eTag;
            contents.StorageClass = "STANDARD";
            contents.LastModified = DateTime.Parse(lastModified);
            return contents;
        }
        public static Contents BuildDs3Object(string key, string eTag, string lastModified, long size)
        {
            var owner = new User
            {
                DisplayName = "*****@*****.**",
                Id = Guid.Parse("75aa57f0-9aa0-c8ca-eab4-f8c24e99d10f")
            };
            //"75aa57f09aa0c8caeab4f8c24e99d10f8e7faeebf76c078efc7c6caea54ba06a"

            var contents = new Contents
            {
                Key = key,
                Size = size,
                Owner = owner,
                ETag = eTag,
                StorageClass = "STANDARD",
                LastModified = DateTime.Parse(lastModified)
            };
            return contents;
        }