コード例 #1
0
        }         // constructor

        public virtual Agent Init()
        {
            Now = DateTime.UtcNow;

            MetaData        = new MetaData();
            LatePayments    = new List <Payment>();
            NewMarketplaces = new List <Marketplace>();
            ApprovedAmount  = 0;

            Trail = new ReapprovalTrail(
                Args.CustomerID,
                Args.CashRequestID,
                Args.NLCashRequestID,
                Log,
                CurrentValues.Instance.AutomationExplanationMailReciever,
                CurrentValues.Instance.MailSenderEmail,
                CurrentValues.Instance.MailSenderName
                );

            Trail.SetTag(this.tag);

            Funds = new AvailableFunds();

            Cfg = InitCfg();

            return(this);
        }         // Init
コード例 #2
0
ファイル: Agent.cs プロジェクト: vijayamazon/ezbob
 public Agent(
     AConnection oDB,
     ASafeLog oLog,
     int customerId,
     long?cashRequestID,
     long?nlCashRequestID,
     DateTime?dataAsOf = null
     )
 {
     this.m_oDB      = oDB;
     this.m_oLog     = oLog.Safe();
     this.CustomerId = customerId;
     this.Now        = dataAsOf ?? DateTime.UtcNow;
     Trail           = new ReapprovalTrail(customerId, cashRequestID, nlCashRequestID, this.m_oLog);
     Result          = new ReApprovalResult(false, 0);
 }         // constructor