Exemple #1
0
        public Stream Transform(FixedLengthDto data)
        {
            try
            {
                if (data.DataStream != null)
                {
                    using (MemoryStream ms = new MemoryStream(data.DataStream))
                    {
                        data.DataResult = ReadFully(ms);
                    }
                }
            }
            catch (IOException ex)
            {
                throw new ArgumentException("", ex);
            }

            return(new MemoryStream(data.DataResult));
        }
Exemple #2
0
 public async Task CallBack(FixedLengthDto data)
 {
     await Task.CompletedTask;// _dataTransformPublisher.CallBackResult(data.FileName, "Success", data.DataStream);
 }