Beispiel #1
0
        public Task <SwiftResponse> CopyObject(string containerFromId, string objectFromId, string containerToId, string objectToId, Dictionary <string, string> headers = null)
        {
            if (headers == null)
            {
                headers = new Dictionary <string, string>();
            }

            headers[SwiftHeaderKeys.CopyFrom] = SwiftHeaderKeys.GetObjectManifestValue(containerFromId, objectFromId);

            return(PutObject(containerToId, objectToId, new byte[0], headers));
        }
Beispiel #2
0
        public Task <SwiftResponse> PutManifest(string containerId, string objectId, Dictionary <string, string> headers = null, Dictionary <string, string> queryParams = null)
        {
            if (headers == null)
            {
                headers = new Dictionary <string, string>();
            }

            int contentLength = 0;

            headers[SwiftHeaderKeys.ObjectManifest] = SwiftHeaderKeys.GetObjectManifestValue(containerId, objectId);
            headers[SwiftHeaderKeys.ContentLength]  = contentLength.ToString();

            return(PutObject(containerId, objectId, new byte[contentLength], headers, queryParams));
        }