Пример #1
0
        public override Stream GetReadStream(string domain, string path, int offset)
        {
            GetObjectRequest request = new GetObjectRequest()
                                       .WithBucketName(_bucket)
                                       .WithKey(MakePath(domain, path));

            if (0 < offset)
            {
                request.WithByteRange(offset, int.MaxValue);
            }

            return(new ResponseStreamWrapper(GetClient().GetObject(request)));
        }