Пример #1
0
        public async Task <SignalInfo> ProcessFileAsync()
        {
            Logger.Trace("Start file processing {0}", this.FileName);

            SignalInfo signalInfo = await _signalProcessorService.ProcessFileAsync();

            Logger.Trace("End file processing {0}", this.FileName);

            return(signalInfo);
        }
 public static SignalViewModel Create(SignalInfo signalInfo, string fileName)
 {
     return new SignalViewModel
     {
         Characteristics = new SignalCharacteristicsViewModel(signalInfo.Characteristics),
         FileName = fileName,
         SignalMetadata = new SignalMetadataViewModel(signalInfo.SignalData.Metadata),
         Points = new List<SignalDataPoint>(signalInfo.SignalData.Values.Select((p, counter) => new SignalDataPoint(counter.ToString(), p)).ToList())
     };
 }
Пример #3
0
        public async Task <SignalInfo> ProcessFileAsync(int startPoint, int endPoint)
        {
            Logger.Trace("Start file processing {0} for points ({1}; {2})", this.FileName, startPoint, endPoint);

            SignalInfo signalInfo = await _signalProcessorService.ProcessFileAsync(startPoint, endPoint);

            Logger.Trace("End file processing {0} for points ({1}; {2})", this.FileName, startPoint, endPoint);

            return(signalInfo);
        }