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(); }
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(); }
public ReportTaskInfo(ReportDeliveryInfo delivery, ReportGrabberInfo grabber, ReportExecutionInfo execution) { _delivery = delivery; _grabber = grabber; _execution = execution; }