Пример #1
0
 protected Processor(ProcessorSettings settings)
 {
     Settings = settings;
     Triggers = Settings.TriggerSettings.Select(x => x.CreateInstance()).ToList();
     Triggers.ForEach(x => x.WriteLine += (sender, message) => OnWriteLine(message));
 }
Пример #2
0
 protected Processor(ProcessorSettings settings)
 {
     Settings = settings;
     Triggers = Settings.TriggerSettings.Select(x => x.CreateInstance()).ToList();
     Triggers.ForEach(x => x.WriteLine += (sender, message) => OnWriteLine(message));
 }