public async Task PutAttachment(RavenConnectionStringOptions dst, AttachmentExportInfo attachmentExportInfo)
 {
     if (attachmentExportInfo != null)
     {
         await Store.AsyncDatabaseCommands.PutAttachmentAsync(attachmentExportInfo.Key, null, attachmentExportInfo.Data, attachmentExportInfo.Metadata);
     }
 }
        public Task PutAttachment(RavenConnectionStringOptions dst, AttachmentExportInfo attachmentExportInfo)
        {
            if (attachmentExportInfo != null)
            {
                // we filter out content length, because getting it wrong will cause errors 
                // in the server side when serving the wrong value for this header.
                // worse, if we are using http compression, this value is known to be wrong
                // instead, we rely on the actual size of the data provided for us
                attachmentExportInfo.Metadata.Remove("Content-Length");
                database.Attachments.PutStatic(attachmentExportInfo.Key, null, attachmentExportInfo.Data,
                                    attachmentExportInfo.Metadata);
            }

            return new CompletedTask();
        }