Ejemplo n.º 1
0
 public Task <Stream> ExportLayout(string authenticationCookie, string seriesInstanceUID, Layout layout, bool burnAnnotations, CompressionType compression, int width)
 {
     return(Task.Factory.StartNew <Stream>(() =>
     {
         var userName = AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanExport);
         var image = _exportAddin.ExportLayout(userName, seriesInstanceUID, layout, burnAnnotations, compression, width);
         return image;
     }));
 }
Ejemplo n.º 2
0
        public string ExportLayout(string authenticationCookie, string seriesInstanceUID, Layout layout, bool burnAnnotations, CompressionType compression, int width)
        {
            Stream image = null;

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

            image = _exportAddin.ExportLayout(userName, seriesInstanceUID, layout, burnAnnotations, compression, width);
            return(SaveStream(image));
        }