21 using System.Collections.Generic;
30 private readonly Func<Security, IEnumerable<BaseData>> _seedFunction;
39 var result = seedFunction.ConvertToDelegate<Func<Security, object>>();
40 _seedFunction = security =>
42 var dataObject = result(security);
43 var dataPoint = dataObject as
BaseData;
44 if (dataPoint !=
null)
46 return new[] { dataPoint };
49 return (IEnumerable<BaseData>)dataObject;
58 : this(security => {
return new []{ seedFunction(security) }; })
68 _seedFunction = seedFunction;
84 foreach (var seedData
in _seedFunction(security))
98 catch (Exception exception)