public List <Domain.RequestForConfirmation.RequestForConfirmation> Invoke(DateTime date)
        {
            List <Domain.RequestForConfirmation.RequestForConfirmation> rfcs = new List <Domain.RequestForConfirmation.RequestForConfirmation>();
            //return all potential valid rfcs to be processed
            List <NaesbEvent> naesbEvents = _repository.GetCyclesToProcess(date, "RFC");

            foreach (var naesbEvent in naesbEvents)
            {
                //this will always be current because if an RFC for a cycle doesn't go out...then it never does for that cycle.
                DateTime gasDay = date.AddDays(naesbEvent.OffSet != null ? Convert.ToDouble(naesbEvent.OffSet) : 0);
                //get the domain RFC from the repository
                var rfc = GetRequestForConfirmation(naesbEvent.Pipeline, naesbEvent.Utility, gasDay, naesbEvent.Cycle);

                if (rfc != null)
                {
                    rfcs.Add(rfc);
                }
            }

            return(rfcs);
        }
Пример #2
0
 public List <NaesbEvent> Invoke(DateTime date, string fileType)
 {
     return(_repository.GetCyclesToProcess(date, fileType));
 }