Ejemplo n.º 1
0
        public Task PutAttachmentAsync(string key, Guid?etag, byte[] data, RavenJObject metadata)
        {
            // Should the data paramater be changed to a Stream type so it matches IDatabaseCommands.PutAttachment?
            var stream = new MemoryStream();

            stream.Write(data, 0, data.Length);
            databaseCommands.PutAttachment(key, etag, stream, metadata);
            return(new CompletedTask());
        }