示例#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;
 }