Exemple #1
0
        public string Run(IEngineCommandDto commandDto)
        {
            using (var image = commandDto.Base64Image.FromBase64() as Bitmap)
            {
                new CommandSetProcessor(
                    new CommandSetParser(),
                    new ImageProcessorRunner())
                .ProcessImage(commandDto.CommandString, image);

                return(image.ToBase64());
            }
        }
Exemple #2
0
 public IProcessorCommand[] GetCommandSet(IEngineCommandDto commandDto)
 {
     try
     {
         return(GetCommands(commandDto.CommandString));
     }
     catch (Exception ex)
     {
         if (IsHandeled(ex))
         {
             System.Diagnostics.Trace.WriteLine(ex.Message);
             return(null);
         }
         else
         {
             throw;
         }
     }
 }