예제 #1
0
        private int HandleEmailSender(DataRecordCollection data, Options opts)
        {
            if ((opts & Options.EMAIL_DECREMENTAL_MODE) != 0)
            {
                return(email_sender.SendDecrementalEmails(data, exfilDestination));
            }

            else if ((opts & Options.EMAIL_ONE_SHOT_MODE) != 0)
            {
                return(email_sender.SendAllRecords(data, exfilDestination));
            }

            else
            {
                return(email_sender.Send(data, exfilDestination));
            }
        }