Example #1
0
 /// <summary>
 /// Download Chunk
 /// </summary>
 /// <param name="request">Request</param>
 /// <param name="response">Response</param>
 override protected void DownloadChunk(DownloadDocumentRequest request, ref DownloadDocumentResponse response)
 {
     if (FlowDocsUnitOfWork != null)
     {
         DownloadChunk(FlowDocsUnitOfWork, request, ref response);
     }
     else
     {
         using (var uow = new FlowDocsUnitOfWork())
         {
             DownloadChunk(uow, request, ref response);
         }
     }
 }
Example #2
0
 /// <summary>
 /// Upload Chunk
 /// </summary>
 /// <param name="oid">Document Oid</param>
 /// <param name="request">Request</param>
 override protected void UploadChunk(Guid oid, UploadDocumentRequest request)
 {
     if (FlowDocsUnitOfWork != null)
     {
         UploadChunk(FlowDocsUnitOfWork, oid, request);
     }
     else
     {
         using (var uow = new FlowDocsUnitOfWork())
         {
             UploadChunk(uow, oid, request);
         }
     }
 }