예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
 public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution)
 {
     _delivery = delivery;
     _grabber = grabber;
     _execution = execution;
 }
예제 #4
0
 public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution)
 {
     _delivery  = delivery;
     _grabber   = grabber;
     _execution = execution;
 }