예제 #1
0
        static public IReportsDeliverer Create(ReportDeliveryInfo deliveryInfo)
        {
            if (deliveryInfo.Type == ReportDeliveryInfo.SourceType.Auchan)
            {
                return(new AuchanReportsDeliverer());
            }
            if (deliveryInfo.Type == ReportDeliveryInfo.SourceType.MetroLink)
            {
                return(new MetroLinkReportsDeliverer());
            }

            throw new NotSupportedException();
        }
예제 #2
0
        public static IReportsDeliverer Create(ReportDeliveryInfo deliveryInfo)
        {
            if (deliveryInfo.Type == ReportDeliveryInfo.SourceType.Auchan)
                return new AuchanReportsDeliverer();
            if (deliveryInfo.Type == ReportDeliveryInfo.SourceType.MetroLink)
                return new MetroLinkReportsDeliverer();

            throw new NotSupportedException();
        }
예제 #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;
 }