Ejemplo n.º 1
0
 protected override void PerformOperation(VivendiDocument sourceDoc, Uri destUri, VivendiCollection destCollection, string destName) => sourceDoc.MoveTo(destCollection, destName);
Ejemplo n.º 2
0
 protected override void PerformOperation(VivendiDocument sourceDoc, Uri destUri, VivendiCollection destCollection, string destName) => destCollection.NewDocument(destName, sourceDoc.CreationDate, sourceDoc.LastModified, sourceDoc.Data);
Ejemplo n.º 3
0
 private void WriteDocument(HttpContext context, VivendiDocument document)
 {
     context.Response.AppendHeader("Content-Disposition", Invariant($"attachment; filename*=UTF-8''{Uri.EscapeDataString(document.DisplayName)}"));
     using var stream = new MemoryStream(document.Data);
     stream.CopyTo(context.Response.OutputStream);
 }
Ejemplo n.º 4
0
 protected abstract void PerformOperation(VivendiDocument sourceDoc, Uri destUri, VivendiCollection destCollection, string destName);