Exemple #1
0
        protected override void Execute(NativeActivityContext context)
        {
            try
            {
                string phaseX       = this.In_Phase.Get(context);
                string dbPath       = this.In_DbPath.Get(context);
                int    currentBatch = this.In_CurrentBatch.Get(context);
                int    perBatch     = this.In_PerBatch.Get(context);

                OutboundStrEmailsHandler oseh = new OutboundStrEmailsHandler(dbPath);
                DataTable resultDT            = oseh.LoadPhaseXFromDb(phaseX, perBatch, currentBatch);
                this.Out_DataTable.Set(context, resultDT);
            }
            catch (Exception e)
            {
                Console.WriteLine($"[{nameof(this.GetType)}] Exception >>> {e.Message}");
                throw e;
            }
        }
Exemple #2
0
        protected override void Execute(NativeActivityContext context)
        {
            try
            {
                string dbPath = this.In_DbPath.Get(context);
                string fileName = this.In_FileName.Get(context);
                string subject = this.In_Subject.Get(context);
                string emailUsernames = this.In_EmailUsernames.Get(context);
                string sentDate = this.In_SentDate.Get(context);
                

                OutboundStrEmailsHandler iSEHandler = new OutboundStrEmailsHandler(dbPath, fileName, subject, emailUsernames, sentDate);
                iSEHandler.InsertToDb();
            }
            catch (Exception e)
            {
                Console.WriteLine($"[InsertOutboundStrEmailsToDb] Exception  >>> {e.Message}");
                throw e;
            }
        }