static public IGrabber Create(ReportGrabberInfo grabberInfo) { if (grabberInfo.Type == ReportGrabberInfo.GrabberType.Standart) { var mappings = new List <Mapping>(); //mappings = GetMappingsFromDataBase(....); return(new Grabber(mappings)); } if (grabberInfo.Type == ReportGrabberInfo.GrabberType.MyCustomAuchan) { return(new MyCustomAuchanReportGrabber()); } throw new NotImplementedException(); }
public static IGrabber Create(ReportGrabberInfo grabberInfo) { if (grabberInfo.Type == ReportGrabberInfo.GrabberType.Standart) { var mappings = new List<Mapping>(); //mappings = GetMappingsFromDataBase(....); return new Grabber(mappings); } if (grabberInfo.Type == ReportGrabberInfo.GrabberType.MyCustomAuchan) return new MyCustomAuchanReportGrabber(); throw new NotImplementedException(); }
public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution) { _delivery = delivery; _grabber = grabber; _execution = execution; }