Пример #1
0
 public Task <Stream> ExportSeries(string authenticationCookie, string[] seriesInstanceUIDs, ExportOptions options)
 {
     return(Task.Factory.StartNew <Stream>(() =>
     {
         var userName = AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanExport);
         var zip = _exportAddin.ExportSeries(userName, seriesInstanceUIDs, options);
         return zip;
     }));
 }
Пример #2
0
        public string ExportSeries(string authenticationCookie, string[] seriesInstanceUIDs, ExportOptions options)
        {
            Stream zip;

            var userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanExport);

            zip = _exportAddin.ExportSeries(userName, seriesInstanceUIDs, options);

            return(SaveZip("Series", zip));
        }