コード例 #1
0
 public async Task <ResourceResponse <Attachment> > AddAttachment(string id, System.IO.Stream attachment, string contentType, string filename)
 {
     //TODO: Change tracking
     return(await _documentClient.CreateAttachmentAsync(UriFactory.CreateDocumentUri(_applicationConfig.Database, _applicationConfig.Collection, id), attachment,
                                                        new MediaOptions { ContentType = contentType }));
 }