17 using System.Collections.Generic;
29 private DateTime? _start;
37 public string Name {
get;
set; }
44 _streamProvider = streamProvider;
46 _processors = processors;
60 using (var processor =
new RawFileProcessor(streamProvider, streamParser, processors) {
Name = name })
62 foreach (var zip
in sources)
66 processor.Process(zip);
84 _start = _start ?? DateTime.UtcNow;
87 foreach (var stream
in _streamProvider.Open(source))
91 foreach (var data
in _parser.Parse(source, stream))
93 foreach (var processor
in _processors)
95 processor.Process(data);
101 Log.
Trace(
"RawFileProcessor.Process({0}): Finished.", source);
102 _streamProvider.Close(source);
110 _streamProvider.Dispose();
112 foreach (var processor
in _processors)
119 var stop = DateTime.UtcNow;
120 Log.
Trace(
"RawFileProcessor.Dispose({0}): Elapsed {1}",
Name, stop - _start);